Java programming tutorial with Official Hord - String Class (string.length() Method and Concatenation)
What Will I Learn?
- You will learn to find the number of characters in a string by using
string.length();
method. - You will learn to concatenate string by using
string.concat(string);
andstring+string;
methods;
Requirements
- NetBeans IDE
- Java Runtime Enviroment
Difficulty
- Intermediate
Description
In this tutorial, I have explained how to find the length of a string and also how to add two or more strings together.
Video Tutorial
Curriculum
- Java programming tutorial with Official Hord - Character Class (Methods: Uppercase and Lowercase Detection and Conversion)
- Java programming tutorial with Official Hord - Character Class (isLetter, isDigit, isWhitespace)
- Java programming tutorial with Official Hord - How to Subtract Integers values
- Java programming tutorial with Official Hord - Integers and Integer addition
- Java programming tutorial with Official Hord - Creating and Validating data entered into a Login Program
Posted on Utopian.io - Rewarding Open Source Contributors
Nice to see these types of articles; from a professional Java developer of 15 years! The problem is, Java has such a large scope that getting these right is tricky. For example, there's the simple concatenate with + of strings, but that is highly inefficient. Then you have your .concat call, which is better. However, if you are writing optimised code, it's better trying to use a StringBuffer, as it is designed to operate more efficiently with the garbage collector... I will have a poke around at your other articles. Thank you!
Thanks @sp33dy, I see you have a great knowledge as you have rightly said, I have addressed the Other methods in other tutorials and i Hope you see them also. StringBuffers are safer to use when it comes to more technical work.
Thanks for stopping by.
Although I'm a professional Java developer, I've decided to focus on Godot Engine and providing tutorials for it. Primarily as I've started writing games. So I want to share the love there. Please do drop by.
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Hey @official-hord I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x
Great post!!!
But It does not look like what a novice like me can understand
Lol well yeah it's and intermediate class... But you can always if you follow the steps carefully.
Hmmmmmm....i do hope so