Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • 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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord