12 lines
199 B
Plaintext
12 lines
199 B
Plaintext
|
import java.util.Vector;
|
||
|
import java.lang.Boolean;
|
||
|
|
||
|
class UseWildcardPair{
|
||
|
|
||
|
void m(Pair<?, ?> p, Vector<?> b)
|
||
|
{
|
||
|
p.compare(p); //1, type incorrect
|
||
|
p.compare(p.make(b)); //2, OK
|
||
|
}
|
||
|
|
||
|
}
|