wood burning stoves*
The moose likes Beginning Java and the fly likes Dice Game help and Arrays Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Dice Game help and Arrays " Watch "Dice Game help and Arrays " New topic
Author

Dice Game help and Arrays

Lucas Martin
Greenhorn

Joined: Mar 09, 2011
Posts: 8
I'm unsure about what to do with this section of code, errors are on lines 368 - 388, it's underlined in red using Eclipse and says, pointDie*JLabel1 (* is 1-5) as it does this on all lines through this section, cannot be resolved. I have a feeling it has something to do with the arrays and variables above, I need some help and any other issues you may come across. I know rollFives and moveDice is undefined at this time, and change player as this was going to be assigned for two players only but thought I'd try to let it decide 1-5 players. The scores are also suppose to populate in the JTextField on the right depending on how many players were selected....so lost. Any help will be appreciated.

BTW the other errors are at 463 in the else if , 479 with the turnpoints undefined


Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18757
    
  40

Snark Knuckle wrote:I'm unsure about what to do with this section of code, errors are on lines 368 - 388, it's underlined in red using Eclipse and says, pointDie*JLabel1 (* is 1-5) as it does this on all lines through this section, cannot be resolved.


Take a look at the variable declarations, and how you use those variables. You will see that you are off by one character (ie. they are not the same).

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Lucas Martin
Greenhorn

Joined: Mar 09, 2011
Posts: 8
Thank you, that corrected quite a few problems right there just by some typing errors. Now to just figure out why it's not populating the right text field and keeping score :/
 
 
subject: Dice Game help and Arrays