How to use the String Builder Class in Java

preview_player
Показать описание
How to use the String Builder Class in Java

Hello guys and gals, sorry for the delay in uploads, I am back now and to kick things off we have a video on the String Builder class, it is a very nice class to basically do whatever you want to a string, you could do all of these things yourself but there is no real practical need to if there are methods that are fully functional to use (I said practically as there are a few niche reasons to go ane make some). Hope you enjoy!

Methods used in this Video with what they do:

sb = our String Builder object

Christmas holidays are here! I shall be spamming videos for the next few weeks, make sure you don't miss them.

Why not subscribe to keep notified when I upload?

Social media:

How to use the String Builder Class in Java
Рекомендации по теме
Комментарии
Автор

thanks for the video! I am a uni student and this was so helpful :D

sambedeau
Автор

3:05 if talking about performance, why would you need to go sb.toString() instead of just sb only to print?

juansalazar
Автор

(0, 4) -> Why it's 4 and not 3: I'm just guessing since I'm learning StringBuilder right now only, but I think for...
"sb.delete(0, 4);"
it will delete 4 characters starting at the specified index, which in this case is 0.

D u c k 1 2 3
0 1 2 3 4 5 6 <- indexes

jaysechase