摘要:
1 package struct; 2 3 public class SwitchDemo01 { 4 public static void main(String[] args) { 5 //case穿透 6 char grade = 'C'; 7 8 switch(grade){ 9 case 阅读全文
摘要:
1 package struct; 2 3 import java.util.Scanner; 4 5 public class IfDemo01 { 6 public static void main(String[] args) { 7 Scanner scanner = new Scanner 阅读全文
摘要:
1 package struct; 2 3 public class ShunXuDemo { 4 public static void main(String[] args) { 5 System.out.println("hello1"); 6 System.out.println("hello 阅读全文
摘要:
1 package Scanner; 2 3 import java.util.Scanner; 4 5 public class Demo02 { 6 public static void main(String[] args) { 7 //从键盘接收数据 8 Scanner scanner = 阅读全文
摘要:
1 package Scanner; 2 3 import java.util.Scanner; 4 5 public class Demo01 { 6 public static void main(String[] args) { 7 //创建一个扫描器对象,用于接收键盘数据 8 Scanner 阅读全文