public Cell(int rowspan,int colspan){
  this.rowspan=Math.max(rowspan,1);
  this.colspan=Math.max(colspan,1);
}

public Cell ( int rowspan , int colspan ) { this . rowspan = Math . max ( rowspan , 1 ) ; this . colspan = Math . max ( colspan , 1 ) ; }
creates a cell which takes a custom amount of cell spaces in the table .
