• Post Reply Bookmark Topic Watch Topic
  • New Topic

Nested Statements error  RSS feed

 
Roger Butz
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I'm new to Java and working on a Nested Statements section of a beginner's Java course. Please help me identify the problem in my code as I have been through it multiple times and can't figure it out. Thanks in advance.

The error message is: FinishLine.java:63: error: reached end of file while parsing } ^ 1 error

This is my code

 
Dave Tolls
Ranch Foreman
Posts: 3056
37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done for using code tags!

One thing that would help you, though, is to properly indent your code.
That way you can more easily match up your braces.

For example:


That will help you spot your error.
 
Norm Radder
Rancher
Posts: 2240
28
 
Campbell Ritchie
Marshal
Posts: 56533
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

People on both websites need to know about multiple postings, so they don't simply repeat what has already been said elsewhere.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!