Conversation
|
🎉 感谢提交Pull Request!请稍等片刻,我们已经将其提交到CI进行检查,一旦有结果会立即通知您! |
|
你的提交 0aeee89 ,似乎失败了:Your tests failed on CircleCI 😅 请不要气馁,仔细分析原因,再接再厉! |
| for (int i = 0; i < threadNum; i++) { | ||
| list.add(threadPool.submit(() -> { | ||
| Map<String, Integer> result = new HashMap<>(); | ||
| while (!bufferedReader.readLine().isEmpty()) { |
There was a problem hiding this comment.
/**
* Reads a line of text. A line is considered to be terminated by any one
* of a line feed ('\n'), a carriage return ('\r'), or a carriage return
* followed immediately by a linefeed.
*
* @return A String containing the contents of the line, not including
* any line-termination characters, or null if the end of the
* stream has been reached
*
* @exception IOException If an I/O error occurs
*
* @see java.nio.file.Files#readAllLines
*/
public String readLine() throws IOException {
return readLine(false);
}
谁告诉你文件读完的标志是返回空字符串的?请好好读一读文档,不要想当然。
|
恭喜你,你的提交 7842ff3 已经通过我们的CI检查:Your tests passed on CircleCI! 👍 它会被自动merge后revert。请不要骄傲,继续挑战! |
|
💥 检测到冲突! 你的提交 7842ff3 似乎与当前的主干( |
|
我稍微改了一下这道题目,现在要求多线程读取多个文件,你有兴趣做一下么? |
|
好滴,老师中秋快乐
…---Original---
From: "Bo Zhang"<notifications@github.com>
Date: Fri, Sep 13, 2019 20:09 PM
To: "hcsp/multithread-word-count"<multithread-word-count@noreply.github.com>;
Cc: "JiangXi-YuYan"<845058547@qq.com>;"Author"<author@noreply.github.com>;
Subject: Re: [hcsp/multithread-word-count] Yyy (#8)
我稍微改了一下这道题目,现在要求多线程读取多个文件,你有兴趣做一下么?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
完成了线程池的调用