Java string inversion function reverse()
package test1;
public class TestReverse {
public static void main(String[] args) {
String str2 = "Hello";
str2 = new StringBuffer(str2).reverse().toString();
(str2);
String message = "Hello";
StringBuilder rev = new StringBuilder();
for (int i = () - 1; i >= 0; i--)
((i));
(());
}
}