/** * Atest class for the Contact class */ public class ContactTester { public static void main(String[] args) { // TO DO 1: Create a contact object with first name, last name, and // phone number of your choosing // HINT: see BankAccountTest.java // NOTE: you will have to write the Contact class constructor first or // the comp[iler will complain Contact firstContact = new Contact("Rex", "Karz", "(305) 555-1212") ; // Done! // "local" variable declarations String firstName ; String lastName ; String phone ; // TO DO 2: Call the accessor methods for the Contact object you declared // above and print the data returned, properly labeled firstName = firstContact.getFirst() ; lastName = firstContact.getLast() ; phone = firstContact.getPhone() ; System.out.println("Name: " + firstName + " " + lastName) ; System.out.println("Phone: " + phone) ; // Done! // NEW TO DO: Call the mutator method to change the phone number. Then, // call the accessor methods to get the first and last names and updated // phone number, and print all the data for the updated Contact } }