Guest User

Untitled

a guest
Jan 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. db = new Database("sa", "","AnimalsDB");
  2. db.update("INSERT INTO animals VALUES('ant');");
  3. ResultSet rs = db.query("SELECT * FROM animals;");
  4. while (rs.next())
  5. {
  6. System.out.println(rs.getString("type"));
  7. }
  8.  
  9. Scanner scan = new Scanner(System.in);
  10. while(scan.hasNext())
  11. {
  12. try
  13. {
  14.  
  15. }
  16. catch(IOException e)
  17. {
Add Comment
Please, Sign In to add comment