String s = "你是狗"; StringBuffer sb = new StringBuffer(s); System.out.println(sb.reverse().toString());