Originally Posted by
itayj
yes,my question hasnt queit been answered , i would like to know if there is a simpler way of making a loop with java.util.InputMismatchException in try.
somthing that doesn't involve any complexed import.i'm just a high school student and i wants to make a simple checkers game
more efficient so that i could get some extra credit on the assignment
The loop you posted, and the do/while posted by william is just about as simple as it gets. If you are looking for ways to improve, consider other ways to improve the code. For example usability: what if the user wants to quit (these code snippets will continue to loop until a number is put in)?