JAVA 字符串如何倒排?String a = "你好";然后想把 字符串a 倒过来 做到“好你"[解决办法]String a = "你好";a = new StringBuffer(a).reverse().toString();System.out.println(a);