본문 바로가기

IT칼럼/JAVA

Scanner example

import java.util.Scanner;

public class Main {
public static void main(String [] args)
{
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
System.out.println(A+B);
}
}


'IT칼럼 > JAVA' 카테고리의 다른 글

BigInteger, BigDecimal example  (0) 2018.11.04
Priority Queue  (0) 2018.11.03
StringBuilder example  (0) 2018.11.03
StringTokenizer example  (0) 2018.11.03
BufferedReader example  (0) 2018.11.02