Given the code fragment: What is the result?
A.
Values are : [EE, ME, SE, EE]
B.
Values are : [EE, ME]
C.
Values are : [EE, EE, ME]
D.
Values are : [EE, ME, EE]
E.
Values are : [SE, EE, ME, EE]
Given the code fragment: What is the result?
Given the code fragment: What is the result?
A.
Values are : [EE, ME, SE, EE]
B.
Values are : [EE, ME]
C.
Values are : [EE, EE, ME]
D.
Values are : [EE, ME, EE]
E.
Values are : [SE, EE, ME, EE]
Values are : [EE, ME, SE, EE] after removal of SE
Question is:
public static void main(String args[]){
ArrayList list = new ArrayList();
list.add(“SE”);
list.add(“EE”);
list.add(“ME”);
list.add(“SE”);
list.add(“EE”);
list.remove(“SE”);
System.out.println(“Values are: “+list);
}