摘要: break 直接终止循环 强制退出程序 package com.struct;//break 直接终止循环 强制退出程序public class BreakDomn { public static void main(String[] args) { int i=0; while (i<100){ 阅读全文
posted @ 2020-04-09 21:04 乖执事 阅读(480) 评论(0) 推荐(0)
摘要: 循环 while while是最基本的循环,它的结构为: while(布尔表达式){ //循环内容 }; package com.struct;​public class WhileDomn01 { public static void main(String[] args) {​ //输入1~10 阅读全文
posted @ 2020-04-09 20:08 乖执事 阅读(129) 评论(0) 推荐(0)