Listing A


// Listing A
 /**

 * @return List filled with Strings representing user names
 */
 public List getUsers() {
    ResultSet rs = userDbQuery();
    List retval = new ArrayList()
    while (rs.next()) {
        retval.add(rs.getString(1)); 
    }
    return retval; 
 }