Android

Java Try / Catch

배움의길 2011. 5. 15. 12:44
import java.io.*;

public class TryCatch {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String name;
int kor, eng, math;
try
{
name = in.readLine();
kor = Integer.parseInt(in.readLine());
math = Integer.parseInt(in.readLine());
eng = Integer.parseInt(in.readLine());
Student s = new Student(name, kor, math, eng);
s.PrintScore();
}
catch(Exception e){
System.out.println("GGOGOGOGOOGOG");
}
}

}