如何在Java中从Excel中查找数据集中的列数

时间:2019-07-05 08:20:02

标签: java

我尝试在以下代码中找到excel中的列数,但是我遇到了问题。请帮助我。

public NaiveBayesBinary(String[] data) throws IOException
{

    BufferedReader br = new BufferedReader(new FileReader("D:/dd2.txt"));
    String line = null;    
    while ((line = br.readLine()) != null)
    {
        System.out.println(line.length());
    }
}

0 个答案:

没有答案