1.最容易想到的估计就是利用String类的toCharArray(),再倒序输出数组的方法了: package himi.hebao05; public class TestDemo02 { public static void main(String[] args) { int i = 0; String text = "hebao I love you!"; String result = " "; char[] charArray = text.toChar…
public class Test12 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner input = new Scanner(System.in); System.out.println("请输入一个字符串:"); String str = input.next(); for (int…