MCPcopy Create free account
hub / github.com/DuGuQiuBai/Java / main

Method main

day21/code/java/ForTest.java:2–30  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

1class ForTest {
2 public static void main(String[] args) {
3 //���ڿ���̨�������1-10
4 System.out.println(1);
5 System.out.println(2);
6 System.out.println(3);
7 System.out.println(4);
8 System.out.println(5);
9 System.out.println(6);
10 System.out.println(7);
11 System.out.println(8);
12 System.out.println(9);
13 System.out.println(10);
14 System.out.println("------------");
15
16 for(int x=0; x<10; x++) {
17 System.out.println(x+1);
18 }
19 System.out.println("------------");
20
21 for(int x=1; x<=10; x++) {
22 System.out.println(x);
23 }
24 System.out.println("------------");
25
26 for(int x=10; x>0; x--) {
27 System.out.println(x);
28 }
29 System.out.println("------------");
30 }
31}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected