fork(2) download
  1. import java.util.*;
  2.  
  3. class Example {
  4. public static void main(String[] args) {
  5. List<Date> l = new LinkedList<Date>();
  6. new Foo<Date>().bar(l);
  7. }
  8. }
  9. class Foo<T> {
  10. public void bar(List<? extends T> src) {
  11. System.out.println("Ran just fine");
  12. }
  13. }
Success #stdin #stdout 0.12s 320576KB
stdin
Standard input is empty
stdout
Ran just fine