HangmanLogic

115 views
Skip to first unread message

mar....@gmail.com

unread,
Jan 5, 2015, 6:27:06 AM1/5/15
to moo...@googlegroups.com
Hi,

Please help - I have no idea what I'm doing wrong? Cant get the hidden word to work! Ive tried everything! There must be something Im missing!


Best regards


Supported languages are English 

Joni

unread,
Jan 7, 2015, 7:44:59 AM1/7/15
to moo...@googlegroups.com, mar....@gmail.com
Hi,

Your problem is that variable gletter is initialized in guessLetter method and if guessLetter is not called before calling hiddenWord method gletter variable will be null and will therefore throw nullpointerexception.

BR
Joni

mar....@gmail.com

unread,
Jan 10, 2015, 6:05:44 AM1/10/15
to moo...@googlegroups.com, mar....@gmail.com
Hi, 

Thank you so much for your response Joni! It was very helpful. I've initialised the gletter variable now, but for some reason my hidden word doesn't change when the correct letter is guessed? Is there any way you could help me out again?

mar....@gmail.com

unread,
Jan 10, 2015, 6:06:04 AM1/10/15
to moo...@googlegroups.com, mar....@gmail.com

Joni

unread,
Jan 14, 2015, 12:45:41 AM1/14/15
to moo...@googlegroups.com
You seem to have solved this on your own, great work.

BR
Joni
Reply all
Reply to author
Forward
0 new messages