【发布时间】:2014-08-14 06:42:37
【问题描述】:
这是我的代码:
CSVReader reader = new CSVReader(isReader);
while ((col = reader.readNext()) != null) {
String c1 = col[1];
}
这是我的 csv 文件:
"a","","c"
"1",,"3"
有没有办法区分 null 和 ""? OpenCSV 似乎将所有内容都视为非空字符串。我可以告诉它将空字段视为 null 吗?
【问题讨论】: