private static void fillWithEmptyRows(DataTable data,int count){
  while (data.getRowCount() < count) {
    Double[] emptyRow=new Double[data.getColumnCount()];
    Arrays.fill(emptyRow,0.0);
    data.add(emptyRow);
  }
}

private static void fillWithEmptyRows ( DataTable data , int count ) { while ( data . getRowCount ( ) < count ) { Double [ ] emptyRow = new Double [ data . getColumnCount ( ) ] ; Arrays . fill ( emptyRow , 0.0 ) ; data . add ( emptyRow ) ; } }
utility method that fills a data table with empty rows .
