public String[] getGroupNames(){
        if(!this.dataEntered)throw new IllegalArgumentException("no data has been entered");
        String[] ret = new String[this.nGroups];
        for(int i=0; i<this.nGroups; i++)ret[i] = this.groupNames[i];
        return ret;
    }