fork(1) download
  1. /* package whatever; // don't place package name! */
  2. interface A
  3. {
  4. add();
  5. }
  6. interface B
  7. {
  8. add();
  9. }
  10.  
  11. public class MyClass implements A,B {
  12.  
  13. public void add()
  14. {
  15. System.out.ptinln("Test")
  16. }
  17.  
  18. public static void main()
  19. {
  20. A a = new MyClass();
  21. B b = new MyClass();
  22.  
  23. }
  24. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:4: error: <identifier> expected
    add();
       ^
Main.java:8: error: <identifier> expected
    add();
       ^
Main.java:15: error: ';' expected
    System.out.ptinln("Test")
                             ^
3 errors
stdout
Standard output is empty