首页 > 其他 > 详细

while语句版

时间:2018-01-12 23:25:25      阅读:248      评论:0      收藏:0      [点我收藏+]

class Demo {
public static void main(String[] args) {
for(int x=0; x<10; x++) {

//for语句版
System.out.println("HellWorld");
}
System.out.println("-------------");
//while语句版
int x=0;
while(x<10) {
System.out.println("HellWorld");
x++;
}
}

}

while语句版

原文:https://www.cnblogs.com/songxue/p/8277882.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!