You can read value of each cells you want, by this Jtable method getValueAt(int rowIndex, int columnIndex), then add values to the output array.