初級 › reached end of file while parsing の原因と直し方 › パターン1
reached end of file while parsing の原因と直し方
波括弧の対応が崩れたときに出ます。
1 public class Main { 2 public static void main(String[] args) { 3 System.out.println("Hello"); 4 } 5 _ ^
Main.java:5: error: reached end of file while parsing
空欄を埋めてビルドを通す
開いた波括弧の数だけ閉じる必要があります。クラスの閉じ括弧が足りないと、ファイル末尾まで読んでから報告されます。
次の問題