본문 바로가기

Programming/Error & Exception

InputMismatchException

 

에러 원인: 정수로 입력해야 하는데 문자를 입력한 경우 예외 발생

에러 해결 방법: try-catch문을 사용해서 예외처리 해주기