class TestClass {
public static void main(String... args) {
String[] str = {"amnsi", "haris",};
//------------------------------^
for (String s : str) {
System.out.println(s + " " + str.length);
}
}
}
在这种情况下,为什么我之后没有收到任何错误,