Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class LeapYear {
- public static void main(String[] args);
- Scanner isLeapYear = new Scanner(System.in);
- System.out.print("Please type in the year: ");
- int isLeapYear = scanner.next();
- If isLeapYear/4==int && {isLeapYear/4 /100 /400 ==int} LeapYear=true;
- // i should create a print method including the correct code here
- else LeapYear=false
- // again the else code needs to come in here...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement