package com.matrix;
|
|
|
import java.io.FileWriter;
|
import java.io.IOException;
|
import java.math.BigDecimal;
|
|
public class TestClass {
|
public static void main(String[] args) throws IOException {
|
|
int times = 10000 * 10;
|
Object[] cells = {"满100减15元", "100011", 15};
|
|
// 导出为CSV文件
|
long t1 = System.currentTimeMillis();
|
// FileWriter writer = new FileWriter("E:/test1.csv");
|
// CSVPrinter printer = CSVFormat.EXCEL.print(writer);
|
// for (int i = 0; i < times; i++) {
|
// printer.printRecord(cells);
|
// }
|
// printer.flush();
|
// printer.close();
|
long t2 = System.currentTimeMillis();
|
System.out.println("CSV: " + (t2 - t1));
|
}
|
}
|