title: I can't run java application
body: <p>I'm not sure if I need to paste my code here, but when I go to run my code I right click on the class object and it usually says run as java application, but now all it says is run configurations.</p>
  
  <p>I'm using Eclise.</p>
  
  <p>Here is al of my code.  I know it's a bracket placement issue</p>
  
  <pre><code>import java.util.Calendar;
  
  public class Date {
  
      private int month;
      private int day;
      private int year;
  
      public static void main(String[] args) {
      } 
  
      public Date(int theMonth, int theDay, int theYear) {
          month = checkMonth( theMonth );
          year = checkYear( theYear );
          day = checkDay( theDay );
          System.out.printf("Date object constructor for date %s\n", toString() );
      }
  
      private int checkYear(int testYear) {
          if ( testYear &gt; 0 )
              return testYear;
          else {
              System.out.printf("Invalid year (%d) set to 1.\n", testYear );
              return 1;
          }
      }
  
      private int checkMonth( int testMonth ) {
          if ( testMonth &gt; 0 &amp;&amp; testMonth &lt;= 12 )
              return testMonth;
          else {
              System.out.printf("Invalid month (%d) set to 1.\n", testMonth );
              return 1;
          }
      }
  
  
      private int checkDay( int testDay ) {
          int daysPerMonth[] = 
              { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
  
          if ( testDay &gt; 0 &amp;&amp; testDay &lt;= daysPerMonth[ month ] )
              return testDay;
  
          if ( month == 2 &amp;&amp; testDay == 29 &amp;&amp; ( year % 400 == 0 ||
              ( year % 4 == 0 &amp;&amp; year % 100 != 0 ) ) )
              return testDay;
  
          System.out.printf( "Invalid day (%d) set to 1.\n", testDay );
  
          return 1;
      }
  
      public void nextDay() {
          int testDay = day + 1;
          if ( checkDay( testDay ) == testDay )
              day = testDay;
          else {
              day = 1;
              nextMonth();
          }
      }
  
      public void nextMonth() {
          if ( 12 == month )
              year++;
          month = month % 12 + 1;
      }
  
      public String toString() {
          return String.format( "%d/%d/%d", month, day, year );
      }
  }
  
  class DateTest {
      public static void main( String args[] ) {
          System.out.println( "Checking increment" );
          Date testDate = new Date( 03, 13, 2011 );
  
          for ( int counter = 0; counter &lt; 3; counter++ ) {
              testDate.nextDay();
              System.out.printf( "Incremented Date: %s\n", testDate.toString() );
          }
      }
  }
  </code></pre>