fork(2) download
  1. import java.util.ArrayList;
  2. import java.util.List;
  3. import java.util.Collection;
  4.  
  5. class foo {
  6.  
  7. public static void bar(List a){
  8. System.out.println(1);
  9. }
  10.  
  11. public static String bar(Collection a){
  12. System.out.println(2);
  13. return null;
  14. }
  15.  
  16. public static void main(String[] a){
  17. bar(new ArrayList());
  18. }
  19.  
  20. }
Success #stdin #stdout 0.04s 213440KB
stdin
Standard input is empty
stdout
1