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 trialabhi reddy
1,636 PointsWhen 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
annient
Courses Plus Student 1,708 Pointsyou 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
14,289 PointsDid you load in your Game.java file?
the command is: ":load Game.java"
Teja Tummalapalli
5,592 PointsTeja Tummalapalli
5,592 PointsHi, Can you please provide you code here OR link to your work space.