package test1;
public class Test1 {
public static void main(String[] args) {
String[] sentences = {"hello", "thank u", "thank u very much"};
for (String sentence : sentences) {
System.out.println(sentence);
}
}
}
可以请问一下for (String sentence : sentences)这个循环的运行逻辑是什么吗,这个for循环似乎不是按照正常逻辑书写的,有些看不懂