Here is the code... Problem is that it shows a message retCode is not initialized if i written last line in try block it shows return error i dun understand wat to do now plz friends help me
private boolean spellCheck(String spell)
{
Connection Conn;
Statement Stat;
ResultSet Rs;
String match;
Boolean retCode;
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbc");
Conn = DriverManager.getConnection("jdbc:odbc:Vocabulary");
Stat = Conn.createStatement();
String que = "Select * From Scrabble WHERE id = "+ spell;
Rs = Stat.executeQuery(que);
match = Rs.getString(1);
if(match != null)
retCode=true;
}
catch(SQLException e)
{}
catch(ClassNotFoundException cnfe)
{}
return retCode;
}