Advertisement
Kimes

Untitled

Jan 7th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1. public class DaysAlivePrinter
  2. {
  3.     public static void main(String[] args)
  4.     {
  5.         Day birthday = new Day(1951, 5, 25);
  6.         Day lastDay = new Day(2012, 7 ,23);
  7.         int daysAlive = lastDay.daysFrom(birthday);
  8.         System.out.println(daysAlive);
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement