Java: Derby: remove / delete / drop exists Table

Simple example to drop exists Table from Derby DB in Java.

static boolean dropTable(Connection connection, String table) {
        boolean done = false;
        if(connection != null && table != null && !table.isEmpty()) {
            try {
                Statement statement = connection.createStatement();
                statement.execute("DROP TABLE " + table);
                done = true;
            } catch (SQLException ex) {
                ex.printStackTrace();
            }
        }    
        return done;
    }