摘要: while循环 break continue for循环增强 //增强版for循环for(接收数组类型 变量名:数组名) for (int[] ints : array1) { for (int anInt : ints) { System.out.print(anInt+"\t"); } Syst 阅读全文
posted @ 2022-04-18 21:58 王小瘦的园子 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 1.判断语句 package Struct; import java.util.Scanner; public class If_Demo { public static void main(String[] args) { //创建输入对象 Scanner scanner = new Scanne 阅读全文
posted @ 2022-04-18 16:59 王小瘦的园子 阅读(22) 评论(0) 推荐(0) 编辑
摘要: ####1.next package Scanner; import java.util.Scanner; //导入扫描器的包,创建对象自动添加。 public class demo_1 { public static void main(String[] args) { //创建一个扫描器的对象, 阅读全文
posted @ 2022-04-18 14:27 王小瘦的园子 阅读(54) 评论(0) 推荐(0) 编辑