✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
    • Showing results for:
    • Java
    • Java Objects
    • Delivering the MVP
    • Determining If the Game is Won
    • Close
  • Dinu Comendant
    Dinu Comendant
    6,049 Points

    My game keeps looping

    Posted on Sep 25, 2020 by Dinu Comendant
    Dinu Comendant
    6,049 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Determining If the Game is Won

    0 Answers

  • Nathanael Luke
    Nathanael Luke
    816 Points

    Game stopped telling me how many tries are left.

    Posted on May 7, 2020 by Nathanael Luke
    Nathanael Luke
    816 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Determining If the Game is Won

    2 Answers

  • gene c
    gene c
    13,630 Points

    doesn't the public method to get the answer defeat the purpose of a private answer variable

    Posted on Jan 5, 2020 by gene c
    gene c
    13,630 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Determining If the Game is Won

    1 Answer

  • christianwinnen
    christianwinnen
    5,394 Points

    "game.isWon() == false" instead of "!game.isWon()"

    Posted on Feb 18, 2019 by christianwinnen
    christianwinnen
    5,394 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Determining If the Game is Won

    1 Answer

  • victorvillaplana
    victorvillaplana
    11,582 Points

    My game says I won even before starting!

    Posted on Sep 10, 2018 by victorvillaplana
    victorvillaplana
    11,582 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Determining If the Game is Won

    2 Answers

  • Andrew Chang
    Andrew Chang
    2,618 Points

    Why isn't my code working? It keeps showing "enter a letter: "

    Posted on Jul 4, 2018 by Andrew Chang
    Andrew Chang
    2,618 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Determining If the Game is Won

    1 Answer

  • Enyang Mercy
    PLUS
    Enyang Mercy
    Courses Plus Student 2,339 Points

    Please clear my doubts Hangman.java Prompter.java Game.java

    Posted on Dec 22, 2017 by Enyang Mercy
    Enyang Mercy
    Courses Plus Student 2,339 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Determining If the Game is Won

    2 Answers

  • Jarad Allen
    Jarad Allen
    859 Points

    Mine just says I won. doesn't ask for guesses.

    Posted on Oct 11, 2017 by Jarad Allen
    Jarad Allen
    859 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Determining If the Game is Won

    2 Answers

  • Sahan Wijesinghe
    Sahan Wijesinghe
    2,453 Points

    some letters are not Hitting :/ I cant find the error

    Posted on Aug 20, 2017 by Sahan Wijesinghe
    Sahan Wijesinghe
    2,453 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Determining If the Game is Won

    1 Answer

  • Wan Nor Adzahari Wan Tajuddin
    Wan Nor Adzahari Wan Tajuddin
    2,438 Points

    What is the purpose of the Game(String answer) method>

    Posted on May 23, 2017 by Wan Nor Adzahari Wan Tajuddin
    Wan Nor Adzahari Wan Tajuddin
    2,438 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Determining If the Game is Won

    1 Answer

  • HAIDER AL RUSTEM
    HAIDER AL RUSTEM
    859 Points

    in the method: public String getAnswer(),

    Posted on Dec 30, 2016 by HAIDER AL RUSTEM
    HAIDER AL RUSTEM
    859 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Determining If the Game is Won

    3 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.