fork download
  1. /* Name of the class has to be "Main" only if the class is public. */
  2. public class Main {
  3. public static void main (String[] args) throws java.lang.Exception {
  4. A a = new A();
  5. a.printout();
  6. }
  7. }
  8.  
  9. class A {
  10. void printout() {
  11. System.out.println("class A");
  12. }
  13. }
Success #stdin #stdout 0.04s 4386816KB
stdin
Standard input is empty
stdout
class A