database/src/DbTable.java
public void insert(DataObject newRow) throws IllegalArgumentException {
        int numCol = columnNames.size();
        for(int i = 0; i < numCol; i++){
        if ((newRow.get(columnNames.get(i)) == null)){

            throw new IllegalArgumentException("Bad column");

        }
            else {

                if(isAlphaNumColVal(columnNames, newRow) == false){

                    throw new IllegalArgumentException("Not alphanumeric string");
                }

                else{}
        }

        }

        entries.add(newRow);
    }
/**
     * Inserts new DataObject into table
     *
     * @param newRow    DataObject to be inserted
     * @throws          java.util.IllegalFormatException if newRow is missing any column in columnNames, or any column
     *                  value is not an alphanumeric String
     */
Inserts new DataObject into table
@param newRow    DataObject to be inserted
@throws          java.util.IllegalFormatException if newRow is missing any column in columnNames, or any column
value is not an alphanumeric String
Inserts new DataObject into table @param newRow DataObject to be inserted @throws java . util . IllegalFormatException if newRow is missing any column in columnNames or any column value is not an alphanumeric String
public void insert(DataObject newRow) throws IllegalArgumentException {
        int numCol = columnNames.size();
        for(int i = 0; i < numCol; i++){
        if ((newRow.get(columnNames.get(i)) == null)){
            throw new IllegalArgumentException("Bad column");
        }
            else {
                if(isAlphaNumColVal(columnNames, newRow) == false){
                    throw new IllegalArgumentException("Not alphanumeric string");
                }
                else{}
        }
        }
        entries.add(newRow);
    }
public void insert ( DataObject newRow ) throws IllegalArgumentException { int numCol = columnNames . size ( ) ; for ( int i = 0 ; i < numCol ; i ++ ) { if ( ( newRow . get ( columnNames . get ( i ) ) == null ) ) { throw new IllegalArgumentException ( "Bad column" ) ; } else { if ( isAlphaNumColVal ( columnNames , newRow ) == false ) { throw new IllegalArgumentException ( "Not alphanumeric string" ) ; } else { } } } entries . add ( newRow ) ; }
Inserts new DataObject into table
 @param newRow    DataObject to be inserted
 @throws          java.util.IllegalFormatException if newRow is missing any column in columnNames, or any column
                  value is not an alphanumeric String
Inserts new DataObject into table @param newRow DataObject to be inserted @throws java . util . IllegalFormatException if newRow is missing any column in columnNames or any column value is not an alphanumeric String