//Sample19_33.java import java.io.FileNotFoundException; class Sample19_33{ public static void main(String[] args){ String strFileName = "ヒザカックン.txt"; try{ fileNotLoader(strFileName); }catch(FileNotFoundException e){ System.out.println("mainメソッドのcatchです。"); e.printStackTrace(); } System.out.println("fileNotLoaded."); } public static void fileNotLoader(String str) throws FileNotFoundException{ throw new FileNotFoundException("ファイルが見つかりません。"); } }