标签:style blog ar color sp div log bs as
package com.xxx.xxx; public class demo3 { /** * while 和 do while 的区别 * @param args */ public static void main(String[] args) { int a = 100; while(a == 60){ System.out.println("ok1"); a--; } int b = 100; //不管 真假 ,都会执行一次 do{ System.out.println("ok2"); b--; }while( b == 60); } }
标签:style blog ar color sp div log bs as
原文地址:http://www.cnblogs.com/spadd/p/4164484.html