class TestDo { public static void main(String[] args) { int i = 1; do{ if(i % 2 ==0){ System.out.println(i); } i++; }while(i <=100); } }
do while 学习笔记
原文:http://9815936.blog.51cto.com/9805936/1600444