The first one,
package com.twister;
import java.util.ArrayList;
import java.util.List;
public class Gener {
public void read(List<?> x){}
public static void main(String[] args) {
new Gener().read(new ArrayList<Float>());
}
}
and the second,
package com.twister;
import java.util.ArrayList;
import java.util.List;
public class Gener {
public <Integer>void read(List<Integer> x){}
public static void main(String[] args) {
new Gener().read(new ArrayList<Float>());
}
}
No comments:
Post a Comment
Solution for this question?