Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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"