I want to see if a character in my string equals a certain other char value but I do not know what the char in the string is so I have used this:
if ( fieldNames.charAt(4) == "f" )
But I get the error:
"Operator '==' cannot be applied to 'char', 'jav.lang.String'"
But "g" == "h" seems to work and I know you can use '==' with char types.
Is there another way to do this correctly? Thanks!