language: Java (sun-jdk-1.7.0_10)
date: 436 days 3 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import java.util.*;
 
public final class Main<T> {
private void overloadedMethod(Collection<?> o) {
    System.out.println("Collection<?>");
}
 
private void overloadedMethod(ArrayList<Integer> o) {
    System.out.println("ArrayList<Integer>");
}
 
public void method(ArrayList<T> l) {
    overloadedMethod(l);
}
 
public static void main(String[] args) {
    Main<Integer> test = new Main<Integer>();
    ArrayList<Integer> l = new ArrayList<Integer>();
    test.method(l);
}
}