import ;
import ;
import ;
import ;
import ;
import ;
import ;
import ;
import ;
import ;
import ;
import ;
import ;
import ;
import ;
public class TWrite {
public static void write(WritableWorkbook wb) throws WriteException {
WritableSheet wSheet = ("sheet1", 0);
Label labelC = new Label(0, 0, "Label cell");
(labelC);
Number numberC = new Number(0, 1, 3.1415926);
(numberC);
Boolean booleanC = new Boolean(0, 2, true);
(booleanC);
DateTime dateTimeC = new DateTime(0, 3, new ());
(dateTimeC);
WritableFont wFont = new WritableFont(
, 18, , true);
WritableCellFormat wCellFormatC = new WritableCellFormat(wFont);
Label labelCF = new Label(1, 0, "Label Cell", wCellFormatC);
(labelCF);
NumberFormat nFormat = new NumberFormat("#.##");
WritableCellFormat wCellFormatN = new WritableCellFormat(nFormat);
Number numberNF = new Number(1, 1, 3.1415926, wCellFormatN);
(numberNF);
DateFormat dFormat = new DateFormat(
"yyyy MM dd hh:mm:ss");
WritableCellFormat wCellFormatD = new WritableCellFormat(dFormat);
DateTime dateTimeDF = new DateTime(1, 3, new (), wCellFormatD);
(dateTimeDF);
}
public static void main(String [] args) throws IOException, BiffException, WriteException {
try {
File file = new File("D://JEtest//");
WritableWorkbook wb = (file);
(wb);
();
();
}catch (IOException | WriteException e) {
("Exception: " + e);
throw e;
}
}
}