Thursday, October 27, 2011

Java - Simple Iterator

Iterator itr = list.iterator();
        while(itr.hasNext()) {

            Object element = itr.next();
            System.out.print(element + " ");

        }

No comments:

Post a Comment

Blog Archive