Infinite While Loop When InputMidmatchException is caught in try-catch block [duplicate]
问题 This question already has answers here : try/catch with InputMismatchException creates infinite loop (7 answers) Closed 4 years ago . I keep getting my code caught in an infinite while loop. It is nothing to advanced, but i can not figure it out for the life of me! Someone Please help I have purplosely just re created the specific error without all of the if statements i have in my actual program. package bs; import java.util.InputMismatchException; import java.util.Scanner; public class bs {