database/src/DbTable.java
public void delete(DataObject toDelete) {
        if (toDelete == null){
            return;
        }

        else{
            DataObject toComp = entries.getFirst();

            if (entries.contains(toDelete)){
                entries.remove(toDelete);
                System.out.println("Deleted successfully!");
            }

        }
    return;
    }
/**
     * Removes a DataObject from the table
     *
     * @param toDelete  the DataObject to be removed
     **/
Removes a DataObject from the table
@param toDelete  the DataObject to be removed
Removes a DataObject from the table @param toDelete the DataObject to be removed
public void delete(DataObject toDelete) {
        if (toDelete == null){
            return;
        }
        else{
            DataObject toComp = entries.getFirst();
            if (entries.contains(toDelete)){
                entries.remove(toDelete);
                System.out.println("Deleted successfully!");
            }
        }
    return;
    }
public void delete ( DataObject toDelete ) { if ( toDelete == null ) { return ; } else { DataObject toComp = entries . getFirst ( ) ; if ( entries . contains ( toDelete ) ) { entries . remove ( toDelete ) ; System . out . println ( "Deleted successfully!" ) ; } } return ; }
Removes a DataObject from the table
 @param toDelete  the DataObject to be removed
Removes a DataObject from the table @param toDelete the DataObject to be removed