Java programming tutorial with Official Hord - String Class (string.length() Method and Concatenation)

in #utopian-io7 years ago (edited)

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); and string+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

Sort:  

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

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

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.

Coin Marketplace

STEEM 0.16
TRX 0.15
JST 0.028
BTC 57658.56
ETH 2273.22
USDT 1.00
SBD 2.46