Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db = new Database("sa", "","AnimalsDB");
- db.update("INSERT INTO animals VALUES('ant');");
- ResultSet rs = db.query("SELECT * FROM animals;");
- while (rs.next())
- {
- System.out.println(rs.getString("type"));
- }
- Scanner scan = new Scanner(System.in);
- while(scan.hasNext())
- {
- try
- {
- }
- catch(IOException e)
- {
Add Comment
Please, Sign In to add comment