title: Cant get my date converting program to print out a convertion
body: <p>I'm a little stuck on this date converting program. I'm trying to get it to convert from a numerical mm/dd/yy format to a standard month/day/year format. Im sure its a simple fix I cant see. Any suggestion  would be appreciated.  </p>
  
  <p>So it should run something like this:</p>
  
  <blockquote>
    <p>Enter a date in the format mm dd yyyy: 11 20 1981</p>
    
    <p>The date you entered is November 20, 1981.</p>
    
    <p>Enter another date? (yes/no)</p>
  </blockquote>
  
  <pre><code>package dateconverter;
  
  import java.util.Scanner;
  
  public class DateConverter {
  
  public static void main(String[] args) {
      Scanner console = new Scanner(System.in);
      int monthValue;
      int dayValue;
      int yearValue;
      int[] daysOfMonth = {12, 31, 28, 31, 30, 31, 30, 31, 30, 31};
      final String[] monthNames
              = new String[]{"Jan", "Feb", "March", "April", "May",
                  "Jun", "July", "Aug", "Sept", "Oct", "Nov", "Dec"};
  
      while (true) {
          // Gets date from the user.
          System.out.print("Enter a date in the format mm dd yyyy: ");
          monthValue = console.nextInt();
          dayValue = console.nextInt();
          yearValue = console.nextInt();
  
          // Examine the month, day, year. 
          // Value for the month, day, year that is entered.
          // If it is not the range of the accepted value, throw an exception.  
  
         try { // MonthException
             if (monthValue &lt; 1 || monthValue &gt; 12) 
                throw new MonthException();   
          }
             catch (MonthException e) {
               System.out.println(e.getMessage());
          }
  
         try { // Day Exception
             if (dayValue &lt; 1 &amp;&amp; dayValue &gt; 31 )
                 throw new DayException();
         }
             catch (DayException e) {
              System.out.println(e.getMessage());
          }
  
         try { // Year Exception
             if (yearValue &lt;= 1000 &amp;&amp; yearValue &gt;= 3000)
                 throw new YearException();
         }
             catch (YearException e) {
              System.out.println(e.getMessage());
         }
          try { // Leap Year
             if ((yearValue % 4 == 0) &amp;&amp; (dayValue &gt; 31)) 
                 throw new DateException();
          }
             catch (DateException e) {
              System.out.println(e.getMessage());   
             }
  
          console.nextLine();  // To flush input buffer.
          System.out.print("Enter another date? (yes/no) ");
          String response = console.nextLine();
          if (!response.toUpperCase().equals("no")) {
              System.exit(0);
  
      }          
      }
  }
  private static class MonthException extends RuntimeException {
  
  public MonthException() {
     super("Invalid month value entered, month exceeds excepted value."
             + "Please try again.");
      }
      }
  
  private static class DateException extends RuntimeException {
  
  public DateException() {
      super("Entered date is a leap year.");
      }
  }
  }
  
  class YearException extends RuntimeException {
  
  public YearException() {
      super("Values between 1000 and 3000 are only allowed,"
              + " Please try again.");
      }
  }
   class DayException extends RuntimeException {
  
   public DayException() {
       super("Invalid day value entered, only accept values between 1 and 31."
               + " Please try again.");
      }
  }
  </code></pre>