Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Amulya Arora
6,133 PointsPlease help me!!! Stuck in java objects
My workspace = https://w.trhou.se/s2qrzgyzlp Compile Hangman.java using clear && javac Hangman.java && java Hangman
3 Answers
Steve Hunter
57,712 PointsHi there,
There's a few issues here; I'll work through the errors I am getting reported.
- Game.java line 12 - misspelled
public - Prompter.java line 39. You can't add a condition to an
else- delete(!game.isWon()) - Prompter.java line 38 - add brackets to
getRemainingTries()
I think that's it ...
Steve.
Amulya Arora
6,133 PointsThanks a lottt!!!!!! Steve
Steve Hunter
57,712 PointsNo problem!
Amulya Arora
6,133 PointsThe program works as i wanted it to....
Steve Hunter
57,712 PointsExcellent!
Steve Hunter
57,712 PointsSteve Hunter
57,712 PointsYep - checked and the program runs. I don't know if it works as intended but it'll compile and run now.