我正在阅读.xls,并且有些行的内容类似于“ 100%CDI”。
我尝试过:
result = String.format(line, "%%")
但是它抛出了IllegalFormatConversionException。
请添加更多详细信息。我不确定为什么要使用String.format。您可以简单地使用:
String result=line;