摘要:初学,示例代码里看到的觉得很强大,自己也试试。package du;import java.util.Scanner;public class Test { public static void main(String argv[]){ while(true){ System.out.println("输入年份:"); Scanner sc=new Scanner(System.in); int year=sc.nextInt(); System.out.println(year); System.out...
阅读全文
posted @ 2012-09-11 14:30