I am interested in how to call a variable that changes, such as customer1, customer2, customer3, etc. These customer variables are populat
customer1
customer2
customer3
If you have numbered variables, then use a list. Something like
ArrayList customers = new ArrayList(); customers.add(new Customer("name")); customers.get(0).returnName();