当我在此处执行此代码时,我正在等待结果显示在文本文件中,但是我只能在控制台中获得结果,而在目的地中只能得到一个空文本文件
for (HashMap.Entry<String, Double> entry : thresholdMap.entrySet()) {
System.out.println("Similarities for "+entry.getKey() + " threshold with value " + entry.getValue());
BufferedWriter buffWriter = new BufferedWriter(new FileWriter(new File(outputDirPath+entry.getValue())));
...