代码
提交代码
public class StringReverse { public static void main(String[] args) { StringBuilder str = new StringBuilder("Hello Java"); System.out.println("str经过反转操作后为:" + str.reverse()); } }
运行结果