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

🤑 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

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

  • 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
    • Showing results for:
    • Java
    • Java Objects (Retired)
    • Creating the MVP
    • Remaining Tries
    • Close
  • Jonathan Mitten
    PLUS
    Jonathan Mitten
    Courses Plus Student 11,197 Points

    NullPointerException at Game.getRemainingTries line 35

    Posted on Jan 7, 2017 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 on Jul 9, 2016 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 on Jul 4, 2016 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 on Jul 3, 2016 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 on May 19, 2016 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 on May 2, 2016 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 on May 1, 2016 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 on Apr 16, 2016 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 on Mar 25, 2016 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 on Mar 22, 2016 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 on Feb 6, 2016 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 on Feb 5, 2016 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 on Jan 1, 2016 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 on Nov 25, 2015 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 on Nov 13, 2015 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 on Oct 23, 2015 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 on Sep 27, 2015 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 on Jul 19, 2015 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 on Apr 2, 2015 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 on Feb 16, 2015 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 on Jan 26, 2015 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.

    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.