• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bunch of errors have me scratching my head.

 
John Beese
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator





Firstly I've only been doing this for about 4 weeks, Its a homework assignment for an online course. If I didnt know anything about this stuff a month ago, i feel like i know even less now. So if this is some kind of simple mistake or problem i apologize. The assignment is to make a simple grade calculator which is proving to be not so simple.

Edit: I found a set of brackets i missed after reading my post, that took away some error messages but added others. ill have to look over it now. getting incompatible type and cant find symbol error on lines 137 138 144 and 145.
 
Paul Clapham
Sheriff
Pie
Posts: 20166
24
MySQL Database
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That message is saying that the code starting at line 138 has to be in a method (or a constructor). But it isn't. That's probably because you don't have your braces matched up correctly, either a missing brace or an extra brace somewhere.
 
John Beese
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ThanFixed it
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic