I can see one thing that is wrong:
if (record.length < nameToMatch.length()) {
return false;
}
you are comparing a number of bytes with a number of characters.
0
solved Can anyone help with a Java problem?
I can see one thing that is wrong:
if (record.length < nameToMatch.length()) {
return false;
}
you are comparing a number of bytes with a number of characters.
0
solved Can anyone help with a Java problem?