JAVA中如何将字符串一个一个使用 字符串名.charAt(i) String str = "abcdefg"; for(int i=0;i<jewels.length();i++) { System.out.println(str.charAt(i)); } 输出结果 a b c d e f g