• Post Reply Bookmark Topic Watch Topic
  • New Topic

Code help  RSS feed

 
Adrian Martinez
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys,

I just started taking a Java class and i'm having problems with this code,

Can anyone help me find my mistake, i'm trying to add up the 4 numbers have them print out on screen.

thank you

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37507
552
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at this line:


Four of the five variables it refers to are defined as being of type double. The other one isn't defined. Do you see what you can do to fix that?

And welcome to CodeRanch!
 
Adrian Martinez
Greenhorn
Posts: 27
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
figured it out. i forgot the double finalScore
 
Adrian Martinez
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:Take a look at this line:


Four of the five variables it refers to are defined as being of type double. The other one isn't defined. Do you see what you can do to fix that?

And welcome to CodeRanch!


thank you, i'll have more questions soon.

 
Charles D. Ward
Ranch Hand
Posts: 99
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's also something missing here:

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!