Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java Java Objects (Retired) Creating the MVP Storing Guesses

abhi reddy
abhi reddy
1,636 Points

When I try to create a new object in Game class , I get java.util.NoSuchElementException

When I try to create a new object in Game class in repl , I get a java.util.noSuchElementException

Teja Tummalapalli
Teja Tummalapalli
5,592 Points

Hi, Can you please provide you code here OR link to your work space.

annient
annient
Courses Plus Student 1,708 Points

you may have some syntax error in the Game.java file that you did not notice while typing. I got the same message like you at first, so I rechecked my file and found out I typed "> =" instead of ">=" lol So recheck carefully every line in your file, save it if changes, rerun :load command again and try :)

1 Answer

James Peck
James Peck
14,289 Points

Did you load in your Game.java file?

the command is: ":load Game.java"