简体   繁体   English

我的 CSVHelper 中的 Java 代码错误

[英]Java code error in my CSVHelper

I am using the CsvHelper library to read/write csv files from my excel.我正在使用 CsvHelper 库从我的 excel 读取/写入 csv 文件。 to implement K means clustering.实现 K 意味着聚类。 When I run my main class there's an error (The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files) in the code curVal.append((char)ch);当我运行我的主类时,代码 curVal.append((char)ch) 中出现错误(无法解析类型 java.lang.CharSequence。它是从所需的 .class 文件间接引用的);

java.lang.CharSequence is part of Java since Java 1.4. java.lang.CharSequence从 Java 1.4 开始就是 Java 的一部分。

That error means that either your Java installation is missing its standard library, or it is older than 1.4 (released in 2002!)该错误意味着您的 Java 安装缺少其标准库,或者它比 1.4(2002 年发布!)

Without further information, we cannot solve this for you, because it apparently is a problem local to your computer .没有更多信息,我们无法为您解决此问题,因为这显然是您计算机的本地问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM