-
In Step 2, your fields might look like:
private String firstName;
private String lastName;
private String address;
private String address2;
private String city;
private String state;
private String zip;
private String phone;
-
In Step 7, the code your parseCSVLine() method should
create an Address object, split the input line into
substrings, splitting on the comma, and then initialize
the Address object and return it. Here's some code to help you get
started (you will need to complete it):
Address theAddress = new Address();
String[] fields = line.split(",");
theAddress.setFirstName(fields[0]);
theAddress.setLastName(fields[1]);
. . .
return theAddress;
-
In Step 8, substep 1, you can create an ArrayList:
ArrayList<Address> theList = new ArrayList<>();