How to Fix Java compile error: “reached end of file while parsing }”

How to Fix Java compile error: “reached end of file while parsing }”


You need to enclose your class in { and } Name your classes using CamelCase
(with initial capital letter) Name your methods using camelCase (with small initial letter) Put your { on the same line as the method declaration:

3 thoughts on “How to Fix Java compile error: “reached end of file while parsing }””

Leave a Reply

Your email address will not be published. Required fields are marked *