顺序结构
1 public class Demo1 { 2 public static void main(String[] args) { 3 System.out.println(1); 4 System.out.println(2); 5 System.out.println(3); 6 System.out.println(4); 7 System.out.println(5); 8 } 9 }
执行结果:
欢迎批评指正,提出问题,谢谢!
1 public class Demo1 { 2 public static void main(String[] args) { 3 System.out.println(1); 4 System.out.println(2); 5 System.out.println(3); 6 System.out.println(4); 7 System.out.println(5); 8 } 9 }
执行结果: