//check if the mins is found in the mins array
//i.e isvalid = true
//if so then search the secs

if (isValidMins) {
for (int i = 0; i < timesSec.length; i++) {
if (secs == timesSec[i]) {
IndexOfsecs = i;
isValidSecs = true;
break;
}
isValidSecs = false;
}
System.out.println("The name could not be found for the mins and secs you provided\n");

}

//check if the secs is found in the secs array
//if so then we proceed to find the name
if (isValidSecs) {
//Next
//We find the name in the array
//First we need to check to make sure the IndexOfsec and IndexOfMins
//should be the same . Meaning they are on the same position in the table
//so we can then reference the name attribute to them

System.out.print("The name is: " + names[IndexOfsecs]);

} else {
System.out.println("The name could not be found for the mins and secs you provided\n");