MCPcopy
hub / github.com/DuGuQiuBai/Java / main

Method main

day04/code/05_控制跳转语句/ContinueDemo.java:14–33  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

12*/
13class ContinueDemo {
14 public static void main(String[] args) {
15 //continue;
16
17 for(int x=0; x<10; x++) {
18 if(x%2==0) {
19 //break; //������ǰѭ��
20 continue; //��������ѭ��������������һ�β���
21 }
22 System.out.println(x);
23 }
24
25
26 wc:for(int x=0; x<3; x++) {
27 nc:for(int y=0; y<4; y++) {
28 System.out.print("*");
29 continue wc;
30 }
31 System.out.println();
32 }
33 }
34}

Callers

nothing calls this directly

Calls 1

printMethod · 0.80

Tested by

no test coverage detected