Answers for "stringbuilder java setlength"

0

stringbuilder java setlength

StringBuilder str = new StringBuilder("123456"); 
// set length equal to 5 
str.setLength(5);// str contains "12345"
Posted by: Guest on February-08-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language