摘要: import java.util.Scanner; /* 闰年:能整除4且不能整除100 能整除400 */ public class YearDemo{ public static void main(String[] args){ Scanner s = new Scanner(System.i 阅读全文
posted @ 2018-05-27 17:19 highlightyys 阅读(26) 评论(0) 推荐(0) 编辑
摘要: //1.引入Scanner类 //2.创建Scanner类的对象 import java.util.Scanner; public class ScannerDemo{ public static void main(String[] args){ Scanner in = new Scanner( 阅读全文
posted @ 2018-05-27 16:07 highlightyys 阅读(17) 评论(0) 推荐(0) 编辑