Question: I try to do the first method, but I am a little bit stuck. Please help ! The instruction of that methods is at below.

I try to do the first method, but I am a little bit stuck. Please help ! The instruction of that methods is at below.

Here is the constructor of SuspectEntry in SuspectEntry class.

public SuspectEntry(String name, String phoneNumber, String passportNumber) {

this.name = name;

this.phoneNumber = phoneNumber;

this.passportNumber = passportNumber;

}

package log;

import java.io.FileReader; import java.io.IOException; import java.io.Reader; import java.io.StringReader; import java.util.ArrayList; import java.util.List;

import com.opencsv.CSVReader;

public class LogParser { /** * Returns a list of SuspectEntries corresponding to the CSV data supplied by the given Reader. * * The data contains one or more lines of the format: * * Marc,413-545-3061,1234567890 * * representing a name, phone number, and passport number. * * @param r an open Reader object * @return a list of SuspectEntries * @throws IOException */ public static List parseLog(Reader r) throws IOException {}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!