fork download
  1. package Ideone;
  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.  
  9. public class Ideone
  10. {
  11. public static void main (String[] args) throws java.lang.Exception
  12. {
  13. System.out.println(Ideone.class.getName());
  14. }
  15. }
  16.  
Compilation error #stdin compilation error #stdout 0.09s 320512KB
stdin
Standard input is empty
compilation info
Main.java:9: error: class Ideone is public, should be declared in a file named Ideone.java
public class Ideone
       ^
1 error
stdout
Standard output is empty