1、本篇博客主要介绍while语句的结构
2、源码如下
class WhileDemo
{
public static void main
(String
[] args
)
{
/*
while
(条件表达式
)
{
执行语句;
}
*/
int x
= 1
;
while
(x
<3
);
{
System.out.println
("x="+x
);
x++
;
}
}
}
我的微信号:
xiang20200106 ,欢迎大家找我聊天
— 【 THE END 】—
本公众号已经整理一套包含前端和后端的全套电子书教程,限时免费赠送,请在公众号里回复「
电子书」获取!
转载请注明原文地址:https://ipadbbs.8miu.com/read-55684.html