In this tutorial, you will learn the following:
- StringBuilder Methods:
- length()
- reverse()
- setLength()
- setCharAt(index)
- subString()
- replace()
You would need the following inorder to following this tutorial:
- An Integrated Development Environment(IDE) installed that can run Java (e.g Eclipse, IntelliJ,Netbeans)
- JDK 1.X installed on your Pc
- Of course willingness to learn
Difficulty
- Intermediate
Description
In this tutorial, we take a look at the StringBuilder class.
Strings are immutable meaning they cant e destroyed once created, but a StringBuilder is mutably making it the best option for string manipulation.
The following are a few methods amongst many:
length(): This method returns the length of the StringBuilder object which is the total number of characters.
subString(index): This returns a substring of the StringBuilder object starting from the index specified to the end of the StringBuilder object which is the total length of the StringBuilder object.
setCharAt(index): This changes the character at the specified index.
Video Tutorial Link:
NB: This video has only being shared on my Youtube Channel
Tutorial codes can be gotten from this github repository: https://github.com/generalkolo/Javacodes
Posted on Utopian.io - Rewarding Open Source Contributors
Your contribution cannot be approved because it does not follow the Utopian Rules.
You can contact us on Discord.
[utopian-moderator]
I would delete it but i believe that i should have been warned first before my contribution was rejected!
Thanks.@ewq i never got any warning about the logo below.
Hey @ewq, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!
@edetebenezer, Contribution to open source project, I like you and upvote.
Thanks, @steemitstats
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Would remove the intro also!Thanks, @ewq.
Nice one bro. You got great skills
Thanks blood.. @joseph100
Hey @edetebenezer 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