hasNextInt(): 다음 정수가 있는지 확인hasNext(): 다음 토큰이 있는지 확인hasNextLine(): 다음 줄이 있는지 확인import java.util.Scanner;public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while (sc.hasNextInt()) { int a = sc.nextInt(); int b = sc.nextInt(); System.out.println(a + b); } }}