📌 scanner.nextLine()은 문자열(String) 반환그래서 int inputValue = scanner.nextLine(); 하면 오류 발생!❌ 왜 안 되는가?scanner.nextLine()은 입력을 문자열(String) 로 받음.하지만 int inputValue는 정수(int) 를 저장해야 해서 자료형 불일치 오류가 남. Scanner scanner = new Scanner(System.in); int inputValue = scanner.nextLine(); // ❌ 오류 발생 (String을 int에 저장할 수 없음)🚨 오류 메시지:Type mismatch: cannot convert from String to int(타입 불일치: String을 int로 변환할 수 없음) 🚀 ..