Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- int day, month;
- Date date;
- Scanner in = new Scanner(System.in);
- System.out.print("Enter day: ");
- day = in.nextInt();
- System.out.print("Enter month: ");
- month = in.nextInt();
- in.close();
- date = new Date(day, month);
- for (int i = 1; i <= 10; i++) {
- System.out.println(date.dateAfter(i));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement