Expand|Select|Wrap|Line Numbers
- System.out.println("Enter the day of the month. ");
- dayOfMonth = keyboard.nextInt();
- System.out.println("Enter the month. ");
- monthName = keyboard.nextLine();
- System.out.println("Enter the year. ");
- int Year = keyboard.nextInt();
- if (Year/4){
- if (Year/ 4 && Year/100)
- {isItLeapYear=true;}
- else if (Year/4 && Year/100 && Year/400)
- {isItLeapYear=true;}
- } else {isItLeapYear=false;}
it says that I cannot use Year/ because it is an int not Boolean..