fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11.  
  12. int day;
  13. int month;
  14. int year;
  15.  
  16.  
  17. day = date.get(Calendar.DAY_OF_MONTH);
  18. month = date.get(Calendar.MONTH);
  19. year = date.get(Calendar.YEAR);
  20.  
  21. Sysytem.out.print("Welcome to Swagger Distribution!");
  22. System.out.println("Today's date is "+(month+1)+"/"+day+"/"+year);
  23. }
  24. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:10: error: ';' expected
	public static void main (String[] args) throws java.lang.Exception
	                                                                  ^
Main.java:18: error: <identifier> expected
day = date.get(Calendar.DAY_OF_MONTH);
   ^
Main.java:19: error: <identifier> expected
month = date.get(Calendar.MONTH);
     ^
Main.java:20: error: <identifier> expected
year = date.get(Calendar.YEAR);
    ^
Main.java:22: error: <identifier> expected
Sysytem.out.print("Welcome to Swagger Distribution!");
                 ^
Main.java:22: error: illegal start of type
Sysytem.out.print("Welcome to Swagger Distribution!");
                  ^
Main.java:23: error: <identifier> expected
System.out.println("Today's date is "+(month+1)+"/"+day+"/"+year);
                  ^
Main.java:23: error: illegal start of type
System.out.println("Today's date is "+(month+1)+"/"+day+"/"+year);
                   ^
Main.java:23: error: ')' expected
System.out.println("Today's date is "+(month+1)+"/"+day+"/"+year);
                                     ^
Main.java:23: error: ';' expected
System.out.println("Today's date is "+(month+1)+"/"+day+"/"+year);
                                      ^
Main.java:23: error: <identifier> expected
System.out.println("Today's date is "+(month+1)+"/"+day+"/"+year);
                                            ^
Main.java:23: error: illegal start of type
System.out.println("Today's date is "+(month+1)+"/"+day+"/"+year);
                                             ^
Main.java:23: error: <identifier> expected
System.out.println("Today's date is "+(month+1)+"/"+day+"/"+year);
                                              ^
Main.java:23: error: ';' expected
System.out.println("Today's date is "+(month+1)+"/"+day+"/"+year);
                                               ^
Main.java:23: error: illegal start of type
System.out.println("Today's date is "+(month+1)+"/"+day+"/"+year);
                                                ^
Main.java:23: error: <identifier> expected
System.out.println("Today's date is "+(month+1)+"/"+day+"/"+year);
                                                   ^
Main.java:23: error: ';' expected
System.out.println("Today's date is "+(month+1)+"/"+day+"/"+year);
                                                    ^
Main.java:23: error: illegal start of type
System.out.println("Today's date is "+(month+1)+"/"+day+"/"+year);
                                                       ^
Main.java:23: error: <identifier> expected
System.out.println("Today's date is "+(month+1)+"/"+day+"/"+year);
                                                        ^
Main.java:23: error: ';' expected
System.out.println("Today's date is "+(month+1)+"/"+day+"/"+year);
                                                           ^
Main.java:23: error: <identifier> expected
System.out.println("Today's date is "+(month+1)+"/"+day+"/"+year);
                                                                ^
Main.java:25: error: class, interface, or enum expected
}
^
22 errors
stdout
Standard output is empty