摘要: package Struct; public class ShunxuDemo { //顺序结构 public static void main(String[] args) { System.out.println("hello1"); System.out.println("hello2"); 阅读全文
posted @ 2021-10-19 14:49 xxm555 阅读(36) 评论(0) 推荐(0) 编辑
摘要: package Struct; import java.util.Scanner; public class IfDemo3 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); /* 阅读全文
posted @ 2021-10-19 14:46 xxm555 阅读(292) 评论(0) 推荐(0) 编辑
摘要: package Struct; import java.util.Scanner; public class IfDemo1 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Sy 阅读全文
posted @ 2021-10-19 14:45 xxm555 阅读(491) 评论(0) 推荐(0) 编辑
摘要: package Struct; import java.util.Scanner; public class IfDemo2 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); // 阅读全文
posted @ 2021-10-19 14:45 xxm555 阅读(143) 评论(0) 推荐(0) 编辑
摘要: package li; import java.util.Scanner; public class Demo5 { public static void main(String[] args) { //输入多个数据,求和与平均数,输入一个数字回车确认,通过输入非数字结束并输出结果 Scanner 阅读全文
posted @ 2021-10-19 14:44 xxm555 阅读(39) 评论(0) 推荐(0) 编辑
摘要: package li; import java.util.Scanner; public class Demo4 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int i = 阅读全文
posted @ 2021-10-19 14:43 xxm555 阅读(19) 评论(0) 推荐(0) 编辑
摘要: package li; import java.util.Scanner; public class Demo3 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.o 阅读全文
posted @ 2021-10-19 14:42 xxm555 阅读(23) 评论(0) 推荐(0) 编辑
摘要: package li; import java.util.Scanner; public class Demo2 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.o 阅读全文
posted @ 2021-10-19 14:41 xxm555 阅读(22) 评论(0) 推荐(0) 编辑
摘要: package li; import java.util.Scanner; public class Demo1 { public static void main(String[] args) { //创建一个扫描器对象,用于接收键盘数据 Scanner scanner = new Scanner 阅读全文
posted @ 2021-10-19 14:40 xxm555 阅读(21) 评论(0) 推荐(0) 编辑