日期:2014-05-20 浏览次数:20892 次
public class AnsewerTest { public static void main(String[] args) { String[] st = {"abcde","fghij","klmno","pqrst"}; for(int i=0;i<st[2].length();i++) { System.out.println(st[2].charAt(i)); } } }
------解决方案--------------------
public static void main(String[] args) { String[] st = {"abcde","fghij","klmno","pqrst"}; System.out.println(st[2].charAt(0)); System.out.println(st[2].charAt(1)); System.out.println(st[2].charAt(2)); System.out.println(st[2].charAt(3)); System.out.println(st[2].charAt(4)); }