Reverses the contents of a StringBuffer
public class StringBufferExample {
public static void main(String[] args) {
StringBuffer buff = new StringBuffer("Hello World");
buff.reverse();
System.out.println(buff);
}
}
Java source code examplesJava source code samples. Java code examples. |
|
Reverses the contents of a StringBuffer
public class StringBufferExample {
public static void main(String[] args) {
StringBuffer buff = new StringBuffer("Hello World");
buff.reverse();
System.out.println(buff);
}
}
Tags: java.lang