/* assume "myURL" is a valid URL*/ /* assume that the initial value of a saving account is 0*/ try { Connection conn = DriverManager.getConnection(myURL); Statement s = conn.createStatement(); /* execute SQL to add 100 to the account*/ /* execute more SQL to add 300 to the account*/ conn.commit(); } catch (Exception e) { e.printStackTrace(); }