I'm not sure if it is the same with Chars as it is with strings, but I know with strings, you have to do
tempCoefsArray[i].charAt(0).equals
or something like it. You have to have .equals (not sure about case) after the var, but with the .charAt, i'm not sure if it goes before or after.