You can use the functions built inside the JDBC class for moving the cursor from & to wherever you want.

Code: java
Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
                       ResultSet.CONCUR_UPDATABLE);
  ResultSet uprs = stmt.executeQuery("SELECT * FROM COFFEES")
 
  /* Move to first */
  uprs.first();
  /* Move to last */
  uprs.last();
  /* Next */
  uprs.next();
  /* previous */
  uprs.previous();


There are more, which you can find here http://java.sun.com/docs/books/tutor...inserting.html.