Java Java Arrays Iteration Looping Over 2d Arrays

Stephen Lamm
Stephen Lamm
3,631 Points

Error: 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
Antonio De Rose
20,840 Points

how 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
Stephen Lamm
3,631 Points

Thanks! And I figured out what was wrong, I didn't uncomment the code in the other file of the exercise, oof.