Answers for "list java iteration"

4

java iterate over list

for (int i = 0; i < crunchifyList.size(); i++) {
            System.out.println(crunchifyList.get(i));
        }
Posted by: Guest on February-28-2020
0

iterate list in java

Iterator itr=list.iterator();
while(itr.hasNext)
{
 system.out.println(itr.next); 
}
Posted by: Guest on September-04-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language