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 }
原文地址:https://www.cnblogs.com/PoeticalJustice/p/7608753.html