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

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