使用Apache POI在MS Excel中识别项目符号点
我正在使用Apache POI阅读MS Excel中的列,但代码无法识别项目符号点。 我正在尝试这个:
String cellValue = cell.getStringCellValue(); if(cellValue.contains("•")){}
但是这不起作用。 如果是子弹点, cellvalue
会给出一些垃圾值,这就是为什么它不能在我的if条件下进行比较。
谁能请build议解决scheme?
你需要使用cell.getRichStringCellValue().getString()
,然后检查\u2022
是哪个unicode的“?”