for (int i = 0; i < realCol.length; i += 1) {
row[0] = new String[]{strCol[i]};
row[3] = new float[]{realCol[i]};
row[1] = new int[]{intCol[i]};
row[2] = new double[]{doubleCol[i]};
data.addRow(row);
}
f.addHDU(Fits.makeHDU(data));
BufferedFile bf = new BufferedFile("test1.fits", "rw");
f.write(bf);