// Columbus.java Copyright (c) 2005 Kari Laitinen // http://www.naturalprogramming.com // 2002-11-24 File created. // 2005-07-25 Last modification. // When this program is compiled, Date.java and DateDistance.java // must be in the same folder (directory) together with this file. class Columbus { public static void main( String[] not_in_use ) { Date date_of_discovery_of_america = new Date( "10/12/1492" ) ; Date date_of_first_moon_landing = new Date( "20.07.1969" ) ; System.out.print( "\n Christopher Columbus discovered America on " + date_of_discovery_of_america + "\n That was a " + date_of_discovery_of_america.get_day_of_week() ) ; System.out.print( "\n\n Apollo 11 landed on the moon on " + date_of_first_moon_landing + "\n That was a " + date_of_first_moon_landing.get_day_of_week() ) ; DateDistance distance_between = date_of_discovery_of_america.get_distance_to( date_of_first_moon_landing ) ; System.out.print( "\n\n America was discovered " + distance_between.years + " years, " + distance_between.months + " months, and " + distance_between.days + " days" + "\n before the first moon landing.\n" ) ; } }