문제 출처 https://www.acmicpc.net/problem/11022
내가 작성한 코드
import java.io.IOException;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
int n = Integer.parseInt(br.readLine()); //int형 변환
for(int i=0; i<n; i++) {
StringTokenizer st = new StringTokenizer(br.readLine());
int a =Integer.parseInt(st.nextToken());
int b =Integer.parseInt(st.nextToken());
bw.write("Case #"+i+": "+ a +" + " +b + " = " +(a+b) +"\n");
}
bw.flush();
bw.close();
}
}