I can't seem to figure out how to replace an array list of strings.
ArrayList<String[]> Records
So within my for loop i want to replace a record can I keep getting this error.
The method set(int, String[]) in the type ArrayList is not applicable for the arguments (int, String)
for (int i = 0; i < Records.size(); i++) {
for (int j = 0; j < 2; j++) {
if (j == 0) {
if(!validateRecords(Records.get(i)[j].toString()))
{
Logging.info("Records could not be parsed " + Records.get(i)[j].toString());
Records.set(j, "CouldNotBeParsed");
}else
{
Logging.info(Records.get(i)[j].toString()+ " has been sanitized");
}
}
}
}
What is the proper way to replace this record using the Records.set() ?