第一份java代码

import java.util.Scanner;

public  class Main{

	public static void main(String[] args) {
		Scanner in =new Scanner (System.in);
		while(in.hasNext()) {//相当于一直输入
		int a=in.nextInt();
		int b=in.nextInt();
		System.out.println(a+b);
		}
	}
}
原文地址:https://www.cnblogs.com/skyleafcoder/p/12319538.html