rsOld = stmt.executeQuery("select * from randnumber");if(rsOld.next()){System.out.println("rsOld.next() is true");}else{System.out.println("rsOld.next() is false");}