why am I getting "reached end of file while parsing"? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why am I getting "reached end of file while parsing"?

I added "if(age > 32) {" to the code to try and print "error" but I just got "no output" why? sorry it says "reached end of file while parsing"

6th Oct 2016, 8:18 PM
WHITEHOOD
4 Answers
+ 1
Dude, that error means that: You didn't close your void main with a curly brace properly. Check.
3rd Jan 2017, 11:46 AM
Deep chand
Deep chand - avatar
0
you dont have a System.out.println(" "); saying what you want your program to print
6th Oct 2016, 9:12 PM
Aquarius
Aquarius - avatar
0
I added that to the nested if statment example
6th Oct 2016, 9:22 PM
WHITEHOOD
0
oh, im not quite sure whats wrong.... sorry
6th Oct 2016, 10:15 PM
Aquarius
Aquarius - avatar