The Resultset has get methods for native types like getString(column_number OR "name"). So you could do sonuc.getInt(1); or sonuc.getInt("sayi");. However this depends on your compiler error. If the error has something to do with your query you may want to use the escape sequence \' for ' . Hope this helps.
Joe
SCJP, SCJD(In Progress)<br /> <br />"They whom make no mistakes usually make nothing at all."
A berm makes a great wind break. And we all like to break wind once in a while. Like this tiny ad:
Gift giving made easy with the permaculture playing cards