摘要:
while(布尔表达式){//循环内容}只要布尔表达式为true,循环就会一直执行下去 public class Demo1 { /* do{ //代码语句 }while(布尔表达式); */ public static void main(String[] args) { int i = 0; i 阅读全文
posted @ 2021-12-18 16:59
日4
阅读(202)
评论(0)
推荐(0)
摘要:
import java.util.Scanner; public class Demo1 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("请输入 阅读全文
posted @ 2021-12-18 16:21
日4
阅读(56)
评论(0)
推荐(0)
摘要:
import java.util.Scanner; public class Demo1 { public static void main(String[] args) { // //创建一个对象,用于接收键盘数据 // Scanner scan = new Scanner(System.in); 阅读全文
posted @ 2021-12-18 14:57
日4
阅读(50)
评论(0)
推荐(0)

浙公网安备 33010602011771号