# 리뷰: 윤년 여부 계산 #### CODE <a class='btn btn-default' href='/codes/45618'>Link</a> ``` public class LeapYear { public static void main(String[] args) { int input = integer.parseInt(args[0]); boolean output = isLeapYear(input); System.out.printf("%d년은 윤년입니까? %s", input, output); } public static boolean isLeapYear(int year) { boolean result = false; if ((year % 4) == 0) { result = true; if ((year % 100) == 0) { result = false; if ((year % 1000) == 0) { result = true; } } } return result; } } ``` #### INPUT ``` 1988 ``` #### OUPUT ``` /root/var/tmp/2021_05_08_10_58_21_9270af19/LeapYear.java:3: error: cannot find symbol int input = integer.parseInt(args[0]); ^ symbol: variable integer location: class LeapYear 1 error ```
## 오타 Integer는 클래스타입이므로 대문자로 작성해야 합니다.