import java.sql.*;
public class TestJDBCMySQL {
public static void main(String[] args) {
String url = "jdbc:mysql://idealab.cs.uiowa.edu/WorksOn";
String uid = "user";
String pw = "testpw";
try { // Load driver class
Class.forName("com.mysql.jdbc.Driver");
} catch (java.lang.ClassNotFoundException e) {
System.err.println("ClassNotFoundException: " +e);
}
...