import java.util.*;
public class size {
public static void main(String[] args) {
List list = new ArrayList();
String country[] = { "India", "Japan", "USA", "UK", "Nepal" };
for (int i = 0; i < 5; i++) {
list.add(country[i]);
}
Iterator i = list.iterator();
int x = 0;
while (x
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.