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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started