import java.util.Vector;
public class MainClass {
public static void main(String[] argv) {
Vector vec = new Vector();
boolean boo = false;
vec.add(boo); // Illegal
}
}
import java.util.Vector;
public class MainClass {
public static void main(String[] argv) {
Vector vec = new Vector();
boolean boo = false;
Boolean wrapper = new Boolean(boo);
vec.add(wrapper); // Legal
}
}
|