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. public class X
  9. {
  10.  
  11. public static void main (String[] args) {
  12. boolean a= new Boolean(Boolean.valueOf(args[0]));
  13. boolean b= new Boolean(args[1]);
  14. System.out.println(a+" "+b);
  15. }
  16. }
Compilation error #stdin compilation error #stdout 0.07s 32688KB
stdin
Standard input is empty
compilation info
Main.java:8: error: class X is public, should be declared in a file named X.java
public class X
       ^
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
stdout
Standard output is empty