Originally posted by Michael Dunn: Here's something to play around with import java.util.ArrayList; class MyCustomers { public MyCustomers() { ArrayList list = new ArrayList(); for(int x = 0; x < 10; x++) list.add(new Customer((int)(Math.random()*90000)+10000)); for(int x = 0; x < list.size(); x++) { System.out.println("Customer #"+(x+1)+" ID = " + ((Customer)list.get(x)).getCustomerID()); } } public static void main(String[] args){new MyCustomers();} } class Customer { private int customerID; public Customer() { } public Customer(int customerIDIn) { customerID = customerIDIn; } public int getCustomerID (){return customerID;} public void setCustomerID (int customerIDIn){customerID = customerIDIn;} }