how to get all the items in arraylist in java code example
Example: java get all items from arraylist
for (int i = 0; i < arrlist.size(); i++) {
// Get each item (in this case print each item)
System.out.println(arrlist.get(i));
}
for (int i = 0; i < arrlist.size(); i++) {
// Get each item (in this case print each item)
System.out.println(arrlist.get(i));
}