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

New No-Code Track! 🚀 New videos dropping every week—start learning today!

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

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

  • 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
    • Community Projects
    • Live Sessions
    • 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
  • Community Projects Live Sessions 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
  • Dinu Comendant
    Dinu Comendant
    6,049 Points

    My game keeps looping

    Posted September 25, 2020 10:52am 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 May 7, 2020 2:31pm 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 January 5, 2020 5:48am 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 February 18, 2019 6:52pm 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 September 10, 2018 8:13pm 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 July 4, 2018 4:44pm 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 December 22, 2017 4:33am 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 October 11, 2017 6:27pm 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 August 20, 2017 9:23am 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 May 23, 2017 3:29pm 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 December 30, 2016 3:35am 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.