File inputTXT = new File (fileName);
try{
Scanner in = new Scanner(inputTXT);
}catch(FileNotFoundException e){
System.out.println("");
}
while(in.hasNext()){
String line = in.nextLine();
解決できませんと表示されます。この問題を解決するにはどうすればよいですか?
try catch ブロックを無視しようとしましたが、このファイル スキャナーは try catch ブロック内にある必要があります。