PoeticalJustice

导航

for

 1 public class TestFor {
 2 
 3     /**
 4      *  测试for循环;
 5      *   加强版for循环 foreach
 6      */
 7     public static void main(String[] args) {
 8         for(int a=0;a<=100;a++){
 9             System.out.println(a);
10         }
11     }
12 
13 }

 

posted on 2017-09-28 21:42  PoeticalJustice  阅读(89)  评论(0编辑  收藏  举报