I am trying to print out an int whenever a an int is inputted for my double. e.g. user input 123456, outputs 123456; user inputs 1.0, outputs 1.0. As of the moment my code prints a double regardless. This is for my fullCellText method.
My code:
package textExcel;
public class ValueCell extends RealCell {
private boolean isInt;
public ValueCell(String cell) {
super(cell);
// TODO Auto-generated constructor stub
}
public ValueCell(String cell, boolean isInt) {
super(cell);
this.isInt = isInt;
// TODO Auto-generated constructor stub
}
public String fullCellText() {
return "" + cell;
}
}