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 trialStephen Lamm
6,244 PointsError: missing return statement?
From what I can tell, my code is identical to Craig's, but when I compile and run the code in jshell i get this,
"Error: missing return statement clear && javac Explore.java && java Explore"
also I'm not sure how to show my code for anyone to see.
2 Answers
Antonio De Rose
20,885 Pointshow you put the code - make sure you have 3 backtick keys followed by the word java, no spaces, then you paste the code
without code, it is very hard to help out.
p.s backtick is on to the left of the numerical key 1
Stephen Lamm
6,244 PointsThanks! And I figured out what was wrong, I didn't uncomment the code in the other file of the exercise, oof.