fork download
  1. class BinaryTree{
  2. public static void main(String[] a){
  3. System.out.println(6);
  4. }
  5. }
  6.  
  7. class A {
  8. int accept(B v){
  9. int nti ;
  10. System.out.println(333);
  11. return 0 ;
  12. }
  13. }
  14.  
  15. class B extends A{
  16. A r;
  17.  
  18. r.accept(this);
  19. }
Compilation error #stdin compilation error #stdout 0.06s 2841600KB
stdin
Standard input is empty
compilation info
Main.java:18: error: <identifier> expected
r.accept(this);
        ^
Main.java:18: error: illegal start of type
r.accept(this);
         ^
2 errors
stdout
Standard output is empty