Skip to main content

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

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

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

  • 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
  • tomtrnka
    tomtrnka
    9,780 Points

    method isSolved() --- usage of .contains() instead of .indexOf()

    Posted September 29, 2016 10:58pm by tomtrnka
    tomtrnka
    9,780 Points
    • Java
    • Java Objects (Retired)
    • Delivering the MVP
    • Determining if It Is Solved

    1 Answer

  • Kastro Zizo
    Kastro Zizo
    4,978 Points

    Is This Struggle normal?

    Posted July 8, 2016 9:48pm by Kastro Zizo
    Kastro Zizo
    4,978 Points
    • Java
    • Java Objects (Retired)
    • Delivering the MVP
    • Determining if It Is Solved

    3 Answers

  • Kastro Zizo
    Kastro Zizo
    4,978 Points

    Is This Struggle normal?

    Posted July 8, 2016 9:47pm by Kastro Zizo
    Kastro Zizo
    4,978 Points
    • Java
    • Java Objects (Retired)
    • Delivering the MVP
    • Determining if It Is Solved

    2 Answers

  • Stanley Blackman
    Stanley Blackman
    4,204 Points

    Not understanding how to fix this...

    Posted June 14, 2016 4:33pm by Stanley Blackman
    Stanley Blackman
    4,204 Points
    • Java
    • Java Objects (Retired)
    • Delivering the MVP
    • Determining if It Is Solved

    1 Answer

  • Graham O Connor
    Graham O Connor
    6,551 Points

    I'm trying to run the Hangman on eclipse but it is giving me an error with the play method. How do I fix this?

    Posted May 27, 2016 4:45pm by Graham O Connor
    Graham O Connor
    6,551 Points
    • Java
    • Java Objects (Retired)
    • Delivering the MVP
    • Determining if It Is Solved

    2 Answers

  • Graham O Connor
    Graham O Connor
    6,551 Points

    I'm having this error with the prompter object. Can someone tell me what it is?

    Posted May 27, 2016 4:05pm by Graham O Connor
    Graham O Connor
    6,551 Points
    • Java
    • Java Objects (Retired)
    • Delivering the MVP
    • Determining if It Is Solved

    1 Answer

  • Ivan Rizki
    Ivan Rizki
    1,063 Points

    Why did Craig always use m infront of the name variable?

    Posted May 11, 2016 2:17pm by Ivan Rizki
    Ivan Rizki
    1,063 Points
    • Java
    • Java Objects (Retired)
    • Delivering the MVP
    • Determining if It Is Solved

    1 Answer

  • Nick Vitsinsky
    Nick Vitsinsky
    7,246 Points

    'You lost' message is shown even if the letter is correct

    Posted March 25, 2016 11:11am by Nick Vitsinsky
    Nick Vitsinsky
    7,246 Points
    • Java
    • Java Objects (Retired)
    • Delivering the MVP
    • Determining if It Is Solved

    1 Answer

  • Dorka Tamas
    Dorka Tamas
    5,085 Points

    The game is not running, it passes immediately to congratulations...

    Posted March 20, 2016 9:01pm by Dorka Tamas
    Dorka Tamas
    5,085 Points
    • Java
    • Java Objects (Retired)
    • Delivering the MVP
    • Determining if It Is Solved

    4 Answers

  • Jesús Camarena
    Jesús Camarena
    7,280 Points

    Determining if it is Wrong: End Video Question. ( > VS. != )

    Posted March 18, 2016 10:05am by Jesús Camarena
    Jesús Camarena
    7,280 Points
    • Java
    • Java Objects (Retired)
    • Delivering the MVP
    • Determining if It Is Solved

    1 Answer

  • Matthew Philip Uy
    Matthew Philip Uy
    3,615 Points

    Keeps on looping

    Posted March 14, 2016 11:42pm by Matthew Philip Uy
    Matthew Philip Uy
    3,615 Points
    • Java
    • Java Objects (Retired)
    • Delivering the MVP
    • Determining if It Is Solved

    1 Answer

  • Gábor Tóth
    Gábor Tóth
    11,958 Points

    Doesn't show the ungessed letters as dashes

    Posted November 17, 2015 4:35pm by Gábor Tóth
    Gábor Tóth
    11,958 Points
    • Java
    • Java Objects (Retired)
    • Delivering the MVP
    • Determining if It Is Solved

    1 Answer

  • Ethan Thorne
    Ethan Thorne
    704 Points

    Getting multiple errors.

    Posted November 6, 2015 4:07am by Ethan Thorne
    Ethan Thorne
    704 Points
    • Java
    • Java Objects (Retired)
    • Delivering the MVP
    • Determining if It Is Solved

    1 Answer

  • Ruthba Yasmin
    Ruthba Yasmin
    3,558 Points

    isSolved method

    Posted September 2, 2015 10:23pm by Ruthba Yasmin
    Ruthba Yasmin
    3,558 Points
    • Java
    • Java Objects (Retired)
    • Delivering the MVP
    • Determining if It Is Solved

    2 Answers

  • Aseel Aziz-Gomez
    Aseel Aziz-Gomez
    14,807 Points

    What's wrong with my while loop syntax from quiz?

    Posted April 12, 2015 3:35pm by Aseel Aziz-Gomez
    Aseel Aziz-Gomez
    14,807 Points
    • Java
    • Java Objects (Retired)
    • Delivering the MVP
    • Determining if It Is Solved

    4 Answers

  • Brendan Milton
    Brendan Milton
    9,050 Points

    Incompatible types error - im so confused.

    Posted March 15, 2015 4:10pm by Brendan Milton
    Brendan Milton
    9,050 Points
    • Java
    • Java Objects (Retired)
    • Delivering the MVP
    • Determining if It Is Solved

    3 Answers

  • ISAIAH S
    ISAIAH S
    1,409 Points

    I can't understand this error.

    Posted February 28, 2015 9:13pm by ISAIAH S
    ISAIAH S
    1,409 Points
    • Java
    • Java Objects (Retired)
    • Delivering the MVP
    • Determining if It Is Solved

    3 Answers

  • Kevin Gresmer
    Kevin Gresmer
    3,020 Points

    Alternate way to print out the correct answer?

    Posted February 1, 2015 1:07am by Kevin Gresmer
    Kevin Gresmer
    3,020 Points
    • Java
    • Java Objects (Retired)
    • Delivering the MVP
    • Determining if It Is Solved

    2 Answers

  • Charles Harpke
    Charles Harpke
    33,986 Points

    error in the prompter class.

    Posted January 18, 2015 2:10pm by Charles Harpke
    Charles Harpke
    33,986 Points
    • Java
    • Java Objects (Retired)
    • Delivering the MVP
    • Determining if It Is Solved

    2 Answers

  • Elijah Moreno
    Elijah Moreno
    7,583 Points

    Would it be possible to get the source code for the hangman game?

    Posted December 28, 2014 5:42am by Elijah Moreno
    Elijah Moreno
    7,583 Points
    • Java
    • Java Objects (Retired)
    • Delivering the MVP
    • Determining if It Is Solved

    1 Answer

  • anh vu
    anh vu
    14,108 Points

    Game with upper cases

    Posted December 26, 2014 6:19am by anh vu
    anh vu
    14,108 Points
    • Java
    • Java Objects (Retired)
    • Delivering the MVP
    • Determining if It Is Solved

    0 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