🤑 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

  • 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
  • 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.

    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.