public String ReverseSentence(String str) { //可以用一个stringBuilder试一下? StringBuilder stringBuilder=new StringBuilder("");//stringBuilder来追加 char[] chars = str.toCharArray();//转字符 int i=chars.length-1;//从后往前 while(i>=0) { ArrayList arrayList=new A...