// The DateDisplayer takes a date formatted as mm/dd/yy and outputs // the full year version of that date // Kelli Wiseth // 19-June-2004 // Platform: Wintel [Windows 2000] // JDK version: JDK 1.4.1 // //****************************************************************************** import java.io.*; class DateDisplayer { static final int Y2K_YEAR=29; public static void main (String args[]) throws IOException { BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in)); String date; int display_year; System.out.println("Enter a date in the form mm/dd/yy"); System.out.flush(); date=stdin.readLine(); display_year=Integer.parseInt(date.substring(6)); if (display_year>=Y2K_YEAR) System.out.println(date.substring(0,5) + "/19" + date.substring(6)); else System.out.println(date.substring(0,5) + "/20" + date.substring(6)); }//main }//class