/* package whatever; // don't place package name! */ import java.util.*;import java.lang.*;import java.io.*; /* Name of the class has to be "Main" only if the class is public. */public class X{ public static void main (String[] args) { boolean a= new Boolean(Boolean.valueOf(args[0])); boolean b= new Boolean(args[1]); System.out.println(a+" "+b); }}
Standard input is empty
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
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!