InputStreamReader ir = new InputStreamReder(System.in);
BufferedReader br = new BufferedReader(ir);
String fileName;
try{
fileName = br.readLine();
}catch(IOException e) //輸出入處理錯誤例外
{
System.out.println(e);
}
沒有留言:
張貼留言