1 2 3 4 5 6 7 8 9
import java.util.*; class Test<T> { Map<Integer, String> map; T meth() { return map.get(2); } }