String[] cities = new String[]{"Long Beach, CA", "New York, NY", "Orlando, FL", "Honolulu, HI", "Oklahoma City, OK"};
String[] phoneNumbers = new String[]{"111-1111", "222-2222", "333-3333", "444-4444", "555-5555", "666-6666", "777-7777"};
HashMap<Integer, Contact> contacts = new HashMap<Integer, Contact>();
for (int i = 0; i < size; i++) {
Contact contact = new Contact();
contact.setId(i);
contact.setName(firstNames[random.nextInt(firstNames.length)] + " " + lastNames[random.nextInt(lastNames.length)]);
contact.setAddress1(addresses[random.nextInt(addresses.length)]);
contact.setCity(cities[random.nextInt(cities.length)]);
contact.setPhone(phoneNumbers[random.nextInt(phoneNumbers.length)]);
contact.setContactType(ContactType.values()[random.nextInt(ContactType.values().length)]);
contacts.put(i, contact);
}
return contacts;
}