fork(1) download
  1. interface A{
  2. void foo();
  3. }
  4.  
  5. interface B{
  6. void foo();
  7. }
  8.  
  9. class C implements A, B{
  10. public void foo(){
  11. System.out.println("FOO");
  12. }
  13. }
  14.  
  15. class Ideone
  16. {
  17. public static void main (String[] args) throws java.lang.Exception
  18. {
  19. C c = new C();
  20. c.foo();
  21. }
  22. }
Success #stdin #stdout 0.06s 32596KB
stdin
Standard input is empty
stdout
FOO