Iterator itr=list.iterator(); while(itr.hasNext) {  system.out.println(itr.next);  }

Read more of this post