What does this eve supposed to mean.
I have written all the codes correctly and its still showing me an error...
please tell me whats wrong.
this is my code...
public class Solution {
public static void main(String[] args) {
{
System.out.println("My name is Amigo.");
System.out.println();
System.out.println("I agree to wages of $5000/month in the first year.");
System.out.println("I agree to wages of $5500/month in the second year.");
System.out.println("I agree to wages of $7000/month in the third year.");
System.out.println("I agree to wages of $8000/month in the fourth year.");
System.out.println("I agree to wages of $10000/month in the fifth year.");
System.out.println();
System.out.println("Kiss my shiny metal rear actuator!");
}
Reached end of file while parsing
Under discussion
Comments (3)
- Popular
- New
- Old
You must be signed in to leave a comment
creigelde
22 November 2019, 04:22
Every opening braces { needs one closing braces }. The only purpose of the extra braces is to provide scope-limit . If you put curly braces in the wrong places or omit curly braces where the braces should be, your program probably won't work at all. Moreover, If you don't indent lines of code in an informative manner , your program will still work correctly, but neither you nor any other programmer will be able to figure out what you were thinking when you wrote the code. The error Reached End of File While Parsing is a compiler error and almost always means that your curly parenthesis are not ending completely or maybe there could be extra parenthesis in the end.
0
Alan Lane
3 April 2019, 00:26
This may sound silly but I believe your closing curly bracket should be towards the bottom after your code. It should be spaced apart but on separate lines. Try that and see! the one for public static void ......
0
Guadalupe Gagnon
22 March 2019, 12:14
Don't copy and paste code like this. You should attach the solution:
.
![]()

0