Trying to compare the first charater from SQL return with all the characters from the Alphabet.
I have all the code apart from one problem. The alphabet characters are of type 'char' and the SQL returns of type 'String' (or .substring(0,1) to be exact) but when I try to compare the alphabet letter with the String ( if(char == string)... ) I get a "Incompatible type for char. Can't convert char to java.lang.String" error.
So I need to either find a way to compare a char to a String.substring or a way of converting a String.substring to a char and comparing that to another char. [ November 30, 2005: Message edited by: Bear Bibeault ]