1 28 29 package simple; 30 31 import java.util.ArrayList ; 32 33 public class Customers8 34 { 35 private ArrayList customers = new ArrayList (); 36 37 private int getCount() { 38 return customers.size(); 39 } 40 41 private Object getObject(int index) { 42 return customers.get(index); 43 } 44 45 private void addObject(Object obj) { 46 customers.add(obj); 47 } 48 49 private ICustomer8 getCustomer(int index) { 50 return (ICustomer8)customers.get(index); 51 } 52 53 private void addCustomer(ICustomer8 customer) { 54 customers.add(customer); 55 } 56 } 57 | Popular Tags |