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

New No-Code Track! 🚀 New videos dropping every week—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
    • Community Projects
    • Live Sessions
    • 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
  • Community Projects Live Sessions 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
  • Mihaela Miculescu
    Mihaela Miculescu
    1,005 Points

    For some reason it doesn't compile any files. i had the same issue at Pez leson ,and made it difficult to follow

    Posted February 1, 2021 10:23am by Mihaela Miculescu
    Mihaela Miculescu
    1,005 Points
    • Java
    • Java Objects
    • Creating the MVP
    • Getting Started

    0 Answers

  • Henry Spock
    Henry Spock
    20,615 Points

    Class files not compiling, no syntax errors.

    Posted December 8, 2020 12:24pm by Henry Spock
    Henry Spock
    20,615 Points
    • Java
    • Java Objects
    • Creating the MVP
    • Getting Started

    0 Answers

  • Brendan Passey
    Brendan Passey
    999 Points

    Is this the very next thing after java basics? Already I have no Idea what's going on.

    Posted May 7, 2020 6:33am by Brendan Passey
    Brendan Passey
    999 Points
    • Java
    • Java Objects
    • Creating the MVP
    • Getting Started

    1 Answer

  • Hitesh Mantha
    Hitesh Mantha
    992 Points

    why is the prompter and game class not a public class

    Posted February 14, 2020 10:06pm by Hitesh Mantha
    Hitesh Mantha
    992 Points
    • Java
    • Java Objects
    • Creating the MVP
    • Getting Started

    0 Answers

  • Tevž Ivanjko
    Tevž Ivanjko
    1,774 Points

    When i try to run Hangman in java i get an error: Could not find or load main class Hangman. Anyone know the solution?

    Posted December 28, 2019 10:40pm by Tevž Ivanjko
    Tevž Ivanjko
    1,774 Points
    • Java
    • Java Objects
    • Creating the MVP
    • Getting Started

    1 Answer

  • Mark Chesney
    Mark Chesney
    11,747 Points

    Is a constructor always public?

    Posted June 24, 2019 7:49pm by Mark Chesney
    Mark Chesney
    11,747 Points
    • Java
    • Java Objects
    • Creating the MVP
    • Getting Started

    1 Answer

  • Harshit Gakhar
    Harshit Gakhar
    2,528 Points

    I am not sure how to practice. Should i practice after the complete tutorial or in bits.

    Posted April 28, 2019 7:10am by Harshit Gakhar
    Harshit Gakhar
    2,528 Points
    • Java
    • Java Objects
    • Creating the MVP
    • Getting Started

    1 Answer

  • Pinky Sharma
    PLUS
    Pinky Sharma
    Courses Plus Student 75 Points

    Game State and Behavior

    Posted February 2, 2019 10:58am by Pinky Sharma
    Pinky Sharma
    Courses Plus Student 75 Points
    • Java
    • Java Objects
    • Creating the MVP
    • Getting Started

    1 Answer

  • Victor Curtis Jr
    Victor Curtis Jr
    5,268 Points

    Workspaces Not Launching in Three Different Browsers

    Posted November 6, 2018 9:50pm by Victor Curtis Jr
    Victor Curtis Jr
    5,268 Points
    • Java
    • Java Objects
    • Creating the MVP
    • Getting Started

    1 Answer

  • Roy Korenblit
    Roy Korenblit
    1,209 Points

    Shouldn't the answer variable be final?

    Posted June 26, 2018 9:37am by Roy Korenblit
    Roy Korenblit
    1,209 Points
    • Java
    • Java Objects
    • Creating the MVP
    • Getting Started

    1 Answer

  • priyanka shukla
    priyanka shukla
    3,051 Points

    Why using this.answer when we can just use manswer or any else name to clear define variables

    Posted April 27, 2018 2:03am by priyanka shukla
    priyanka shukla
    3,051 Points
    • Java
    • Java Objects
    • Creating the MVP
    • Getting Started

    1 Answer

  • Mustafa Khan
    Mustafa Khan
    6,224 Points

    What does new do?

    Posted April 10, 2018 10:55pm by Mustafa Khan
    Mustafa Khan
    6,224 Points
    • Java
    • Java Objects
    • Creating the MVP
    • Getting Started

    1 Answer

  • Anika Mehta
    Anika Mehta
    107 Points

    What is the reason behind creating constructor? Please help

    Posted November 29, 2017 7:12am by Anika Mehta
    Anika Mehta
    107 Points
    • Java
    • Java Objects
    • Creating the MVP
    • Getting Started

    3 Answers

  • shaiksha vali
    shaiksha vali
    555 Points

    cannot understand where the error is

    Posted October 20, 2017 6:07am by shaiksha vali
    shaiksha vali
    555 Points
    • Java
    • Java Objects
    • Creating the MVP
    • Getting Started

    0 Answers

  • Soumitra Mehrotra
    Soumitra Mehrotra
    1,468 Points

    In context to the hangman game, what actually are its behaviour and states ?

    Posted August 15, 2017 2:19pm by Soumitra Mehrotra
    Soumitra Mehrotra
    1,468 Points
    • Java
    • Java Objects
    • Creating the MVP
    • Getting Started

    0 Answers

  • Kenneth Emmanuel Kouadio Ziguy
    PLUS
    Kenneth Emmanuel Kouadio Ziguy
    Courses Plus Student 1,125 Points

    Hangman game

    Posted July 17, 2017 4:48pm by Kenneth Emmanuel Kouadio Ziguy
    Kenneth Emmanuel Kouadio Ziguy
    Courses Plus Student 1,125 Points
    • Java
    • Java Objects
    • Creating the MVP
    • Getting Started

    1 Answer

  • Alessandro Agostinelli
    Alessandro Agostinelli
    2,174 Points

    I am getting an error when i try to compile the code in the console.

    Posted June 26, 2017 2:15pm by Alessandro Agostinelli
    Alessandro Agostinelli
    2,174 Points
    • Java
    • Java Objects
    • Creating the MVP
    • Getting Started

    5 Answers

  • Timothy Hilley
    Timothy Hilley
    2,292 Points

    why is my console black and un usable?

    Posted June 13, 2017 12:47am by Timothy Hilley
    Timothy Hilley
    2,292 Points
    • Java
    • Java Objects
    • Creating the MVP
    • Getting Started

    2 Answers

  • Christopher Mlalazi
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Christopher Mlalazi
    Front End Web Development Techdegree Graduate 17,305 Points

    Hangman.class/Game.class

    Posted May 3, 2017 9:12pm by Christopher Mlalazi
    .a{fill-rule:evenodd;}techdegree seal-36
    Christopher Mlalazi
    Front End Web Development Techdegree Graduate 17,305 Points
    • Java
    • Java Objects
    • Creating the MVP
    • Getting Started

    1 Answer

  • Madeline Yao
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Madeline Yao
    Full Stack JavaScript Techdegree Student 9,611 Points

    I cannot create multiple new files

    Posted April 30, 2017 2:03am by Madeline Yao
    .a{fill-rule:evenodd;}techdegree
    Madeline Yao
    Full Stack JavaScript Techdegree Student 9,611 Points
    • Java
    • Java Objects
    • Creating the MVP
    • Getting Started

    0 Answers

  • Ashish Shah
    Ashish Shah
    1,468 Points

    Why did you take constructor method in game.java?

    Posted March 15, 2017 7:28pm by Ashish Shah
    Ashish Shah
    1,468 Points
    • Java
    • Java Objects
    • Creating the MVP
    • Getting Started

    0 Answers

  • Niharika Kumari
    Niharika Kumari
    836 Points

    I am not able to create new file !

    Posted January 4, 2017 3:01am by Niharika Kumari
    Niharika Kumari
    836 Points
    • Java
    • Java Objects
    • Creating the MVP
    • Getting Started

    1 Answer

  • Zac Vacek
    Zac Vacek
    5,206 Points

    Workspace Doesn't Match

    Posted December 7, 2016 9:07pm by Zac Vacek
    Zac Vacek
    5,206 Points
    • Java
    • Java Objects
    • Creating the MVP
    • Getting Started

    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.