How to Convert String to StringBuffer in Java and reverse
21:34How
to Convert String to StringBuffer in Java.
String
str = "Hello";
StringBuffer
sb = new StringBuffer();
sb.append(str);
How
to Convert StringBuffer to String in Java
String
sb = new StringBuffer();
String
str = sb.toString();
0 nhận xét