等同于for (int i = 0; i < str.length; i++) { String s = str[i]; System.out.print(s);}是J2SE 1.5提供的另一种形式的for循环,可以用来处理不知道str长度的情况