hw1/src/main/java/controllers/Database.java
/**
   * Remove the GameBoard from the database.
   * @throws SQLException An exception thrown when the GameBoard is deleted from the table.
   */
Remove the GameBoard from the database.
@throws SQLException An exception thrown when the GameBoard is deleted from the table.
Remove the GameBoard from the database . @throws SQLException An exception thrown when the GameBoard is deleted from the table .
public void unset() throws SQLException {
    Statement statement = connection.createStatement();
    String sql = "DELETE FROM " + GAMEBOARD_TABLE_NAME + " WHERE ID=" + GAMEBOARD_ROW_ID + ";";
    statement.executeUpdate(sql);
    statement.close();
  }
public void unset ( ) throws SQLException { Statement statement = connection . createStatement ( ) ; String sql = "DELETE FROM " + GAMEBOARD_TABLE_NAME + " WHERE ID=" + GAMEBOARD_ROW_ID + ";" ; statement . executeUpdate ( sql ) ; statement . close ( ) ; }
Remove the GameBoard from the database.
Remove the GameBoard from the database .
// Create the table to store the gameboard // Clean up