What is the most efficient way to manipulate string in java? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 2

What is the most efficient way to manipulate string in java?

as java strings are immutable so they cant be changed!!! how to change some characters or words efficiently without using substrings!?

19th Feb 2018, 3:43 AM
Sayan Banerjee
Sayan Banerjee - avatar
1 Resposta
+ 2
There is a class called string builder that answers your questions. https://docs.oracle.com/javase/7/docs/api/java/lang/StringBuilder.html
19th Feb 2018, 7:04 AM
Nitzan
Nitzan - avatar