질문

DaSeungLee Reply 4 years 20 weeks ago
e.getMessage()를 사용하면 For input string: "4x" 이 출력되는데 getMessage()를 사용해서 푸는게 아닌건가요...? Wrong input : 다음에 잘못 입력된 문자열을 출력하는 방법을 모르겠습니다 ㅜㅜ
withcs2 Reply 4 years 19 weeks ago
try catch 밖에 저장해뒀다가 사용하면 됩니다 String s="4x"; try{ ... } catch(Exception e){System.out.printf("틀림! %s",s)}