✨ 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
    • Creating the MVP
    • Getting Started
    • Close
  • 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 on Feb 1, 2021 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 on Dec 8, 2020 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 on May 7, 2020 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 on Feb 14, 2020 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 on Dec 28, 2019 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 on Jun 24, 2019 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 on Apr 28, 2019 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 on Feb 2, 2019 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 on Nov 6, 2018 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 on Jun 26, 2018 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 on Apr 27, 2018 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 on Apr 10, 2018 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 on Nov 29, 2017 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 on Oct 20, 2017 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 on Aug 15, 2017 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 on Jul 17, 2017 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 on Jun 26, 2017 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 on Jun 13, 2017 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 on May 3, 2017 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 on Apr 30, 2017 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 on Mar 15, 2017 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 on Jan 4, 2017 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 on Dec 7, 2016 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.