You just have to get a Statement
from your Connection
and then you can call the method statement.executeUpdate("some normal SQL code to create tables")
.
Since you will likely call the code to create the tables a single time in your development process, I would put that in some separate class with a main method to create the tables.
What I do instead is that I create the tables directly in MySQL. But I paste-and-copy the MySQL creation commands in the comments of the relevant Java class.