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
  • Jonathan Mitten
    PLUS
    Jonathan Mitten
    Courses Plus Student 11,197 Points

    NullPointerException at Game.getRemainingTries line 35

    Posted January 7, 2017 12:38am by Jonathan Mitten
    Jonathan Mitten
    Courses Plus Student 11,197 Points
    • Java
    • Java Objects (Retired)
    • Creating the MVP
    • Remaining Tries

    1 Answer

  • Anas Rida
    Anas Rida
    8,183 Points

    where to write each piece of code

    Posted July 9, 2016 6:00pm by Anas Rida
    Anas Rida
    8,183 Points
    • Java
    • Java Objects (Retired)
    • Creating the MVP
    • Remaining Tries

    1 Answer

  • Shanu Agarwal
    PLUS
    Shanu Agarwal
    Courses Plus Student 700 Points

    I have a doubt that about static with final

    Posted July 4, 2016 3:55pm by Shanu Agarwal
    Shanu Agarwal
    Courses Plus Student 700 Points
    • Java
    • Java Objects (Retired)
    • Creating the MVP
    • Remaining Tries

    2 Answers

  • gregory gordon
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    gregory gordon
    Full Stack JavaScript Techdegree Student 14,652 Points

    ./Prompter.java:11: error: cannot find symbol

    Posted July 3, 2016 1:53am by gregory gordon
    .a{fill-rule:evenodd;}techdegree
    gregory gordon
    Full Stack JavaScript Techdegree Student 14,652 Points
    • Java
    • Java Objects (Retired)
    • Creating the MVP
    • Remaining Tries

    1 Answer

  • Ronald Maldo
    Ronald Maldo
    5,532 Points

    I'm getting error upon compiling on eclipse but was successful running on the workspace of treehouse.

    Posted May 19, 2016 5:46am by Ronald Maldo
    Ronald Maldo
    5,532 Points
    • Java
    • Java Objects (Retired)
    • Creating the MVP
    • Remaining Tries

    2 Answers

  • KHARAK SINGH
    KHARAK SINGH
    1,061 Points

    Can somebody explain dot operator?

    Posted May 2, 2016 12:06am by KHARAK SINGH
    KHARAK SINGH
    1,061 Points
    • Java
    • Java Objects (Retired)
    • Creating the MVP
    • Remaining Tries

    2 Answers

  • Jordan Bester
    Jordan Bester
    4,752 Points

    Why does my code in the console show the letter that I am aiming to guess? please help

    Posted May 1, 2016 9:09pm by Jordan Bester
    Jordan Bester
    4,752 Points
    • Java
    • Java Objects (Retired)
    • Creating the MVP
    • Remaining Tries

    2 Answers

  • Caprice Logan
    Caprice Logan
    4,521 Points

    Why does .length return 5 instead of 4?

    Posted April 16, 2016 2:45pm by Caprice Logan
    Caprice Logan
    4,521 Points
    • Java
    • Java Objects (Retired)
    • Creating the MVP
    • Remaining Tries

    1 Answer

  • Heather Gray
    Heather Gray
    6,225 Points

    exposing variable "off the class"?

    Posted March 25, 2016 3:16am by Heather Gray
    Heather Gray
    6,225 Points
    • Java
    • Java Objects (Retired)
    • Creating the MVP
    • Remaining Tries

    1 Answer

  • Pablo Fernández Monterde
    Pablo Fernández Monterde
    7,191 Points

    Exercises recovering

    Posted March 22, 2016 1:46pm by Pablo Fernández Monterde
    Pablo Fernández Monterde
    7,191 Points
    • Java
    • Java Objects (Retired)
    • Creating the MVP
    • Remaining Tries

    1 Answer

  • Oshedhe Munasinghe
    Oshedhe Munasinghe
    8,108 Points

    "public static final int MAX_MISSES = 7;" static??

    Posted February 6, 2016 8:05pm by Oshedhe Munasinghe
    Oshedhe Munasinghe
    8,108 Points
    • Java
    • Java Objects (Retired)
    • Creating the MVP
    • Remaining Tries

    2 Answers

  • kabir k
    PLUS
    kabir k
    Courses Plus Student 18,036 Points

    My method is returning the integer 8 instead of 1

    Posted February 5, 2016 12:22pm by kabir k
    kabir k
    Courses Plus Student 18,036 Points
    • Java
    • Java Objects (Retired)
    • Creating the MVP
    • Remaining Tries

    3 Answers

  • Dylan Carter
    Dylan Carter
    4,780 Points

    cant solve these errors

    Posted January 1, 2016 10:08pm by Dylan Carter
    Dylan Carter
    4,780 Points
    • Java
    • Java Objects (Retired)
    • Creating the MVP
    • Remaining Tries

    1 Answer

  • Eric Park
    Eric Park
    4,557 Points

    Calling a method

    Posted November 25, 2015 4:12am by Eric Park
    Eric Park
    4,557 Points
    • Java
    • Java Objects (Retired)
    • Creating the MVP
    • Remaining Tries

    1 Answer

  • Hector Torres
    Hector Torres
    4,802 Points

    Can't solve this error....

    Posted November 13, 2015 2:39am by Hector Torres
    Hector Torres
    4,802 Points
    • Java
    • Java Objects (Retired)
    • Creating the MVP
    • Remaining Tries

    1 Answer

  • Christopher Bullington
    Christopher Bullington
    740 Points

    Exception related to %s

    Posted October 23, 2015 9:36pm by Christopher Bullington
    Christopher Bullington
    740 Points
    • Java
    • Java Objects (Retired)
    • Creating the MVP
    • Remaining Tries

    1 Answer

  • Bart van Ackooij
    Bart van Ackooij
    6,283 Points

    What is the idea/purpose of the Hangman track?

    Posted September 27, 2015 5:24pm by Bart van Ackooij
    Bart van Ackooij
    6,283 Points
    • Java
    • Java Objects (Retired)
    • Creating the MVP
    • Remaining Tries

    3 Answers

  • MINJUN MOON
    MINJUN MOON
    7,723 Points

    Error messages come out repeatly, 'cannot find symbol, class object'

    Posted July 19, 2015 12:24am by MINJUN MOON
    MINJUN MOON
    7,723 Points
    • Java
    • Java Objects (Retired)
    • Creating the MVP
    • Remaining Tries

    1 Answer

  • luis martinez
    luis martinez
    2,480 Points

    why on the class game.java method getRemainingTries() you put mMisses.lenght(); why cant you just put mMisses();

    Posted April 2, 2015 2:52am by luis martinez
    luis martinez
    2,480 Points
    • Java
    • Java Objects (Retired)
    • Creating the MVP
    • Remaining Tries

    1 Answer

  • ISAIAH S
    ISAIAH S
    1,409 Points

    error: ^ ./Game.java:34: error: ';' expected...

    Posted February 16, 2015 2:33pm by ISAIAH S
    ISAIAH S
    1,409 Points
    • Java
    • Java Objects (Retired)
    • Creating the MVP
    • Remaining Tries

    2 Answers

  • Benjamin Lush
    Benjamin Lush
    2,707 Points

    [SOLVED] What happens at this stage when you successfully guess the word?

    Posted January 26, 2015 6:17pm by Benjamin Lush
    Benjamin Lush
    2,707 Points
    • Java
    • Java Objects (Retired)
    • Creating the MVP
    • Remaining Tries

    1 Answer

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