Java示例从命令行反向字符串 Java示例字符串反向 Java示例在字符串中搜索 Java示例从命令行反向字符串 import java.io.*; import java.util.*; public class HelloWorld { public static void main(String[] args) { String input = "codingdict"; char[] try1 = input.toCharArray(); for (int i = try1.length-1;i>=0;i--) System.out.print(try1[i]); } } Java示例字符串反向 Java示例在字符串中搜索