import java.util.*;
import java.io.*;
public class wo{
public static void main(String arg[]){ BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int i = Integer.parseInt(in.readLine());
}
}
错误是Unhandled exception type IOException
是这里in.readLine()
这是什么问题啊?
import java.io.*;
public class wo{
public static void main(String arg[]){ BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int i = Integer.parseInt(in.readLine());
}
}
错误是Unhandled exception type IOException
是这里in.readLine()
这是什么问题啊?
{ BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int i = Integer.parseInt(in.readLine());
}
{
try{
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int i = Integer.parseInt(in.readLine());
}
catch(IOException e)
{
//Error Handle....
}
}