Break: the "break" stops the loop
for (int i = 0; i < 10; i++) { if (i == 1) { break; } System.out.println(i); } // Outputs 0
Continue: The continue
statement breaks one iteration
for (int i = 0; i < 5; i++) { if (i == 2) { continue; } System.out.println(i); } // Outputs 0 1 3 4
标签:break,Java,continue,int,Break,Continue From: https://www.cnblogs.com/ShengLiu/p/16924011.html