Question: Example:class Output 1 public static void main ( String args [ ] ) { ArrayList obj = new ArrayList ( ) ; obj . add

Example:class Output
1
public static void main(String args[])
{
ArrayList obj = new ArrayList();
obj . add (e: "A");
obj . add (e: "B");
obj . add (e: "A");
obj . add (e: "F") ;
obj . remove (index: 2) ;
obj . remove (index: 2) ;
obj .ensureCapacity (=inCapacity:3) ;
System.out.println (s: obj.size ()) ;
}
}
a.1
b.2
c.3
d.4
Clear my choice
 Example:class Output 1 public static void main(String args[]) { ArrayList obj

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!