As PHP Thinker says, you rarely want to create a table dynamically within a program. But if you have a legitimate reason, you just submit the "create" statement like an update query:
try
{
Statement st=conn.createStatement();
st.executeUpdate("create table mytable ... whatever ...");
st.close();
}
catch (SQLException oops)
{
... query had syntax errors or something ...
}
This is an update and not a query so there is no ResultSet returned. The return value is the number of records updated, which for a "create table" is always zero so no point bothering with it. If there's an error in