Listing C


// Listing C
 List users = new ArrayList();
 for (Iterator i=getUsers(); i.hasNext(); ) {
    users.add(i.next());
 }