Computer Science, asked by akshitaggarwal20jan, 6 months ago

What is the output of the following Java code:
List<Integer> ar=new ArrayList<>();
ar.add (10);
ar.add (20);
ar.add (30);
ar.remove (0);
ar.remove(0);
ar.add (20);
Iterator i=ar.iterator();
while (i.hasNext ( ) )
{
int ab=(int) i.next();
System.out.print (ab+" ");
]​

Answers

Answered by jitendraprasad7555
2

Answer:

oooooooooooooooooooooo

ooooooooooooooooooooooo(oooooooooo)

Answered by rupeshsutrave39
0

Answer:

00000000000000000000000

Similar questions