list itearte in java code example
Example: iterate list in java
Iterator itr=list.iterator();
while(itr.hasNext)
{
system.out.println(itr.next);
}
Iterator itr=list.iterator();
while(itr.hasNext)
{
system.out.println(itr.next);
}