August 2017
Beginner
298 pages
7h 26m
English
Let's begin by removing the hard-coded source of contacts. This is fairly simple. You'll need to delete the ContactUtil.java class in the package packt.addressbook.util. We are now left with a couple of lines of code in Main.java that are not valid anymore. Let's remove those two lines too:
ContactUtil contactUtil = new ContactUtil();
List<Contact> contacts = contactUtil.getContacts();
Read now
Unlock full access