代码如下:
public class Main {
public static void main(String[] args) {
// write your code here
rili();
}
public static void rili() {
Scanner scanner = new Scanner(System.in);
int sum = 0;
System.out.print("请输入年份: