Skip to content

Yyy#8

Open
Scott-YuYan wants to merge 5 commits intomasterfrom
YYY
Open

Yyy#8
Scott-YuYan wants to merge 5 commits intomasterfrom
YYY

Conversation

@Scott-YuYan
Copy link
Contributor

完成了线程池的调用

@hcsp-bot
Copy link
Contributor

🎉 感谢提交Pull Request!请稍等片刻,我们已经将其提交到CI进行检查,一旦有结果会立即通知您!

@hcsp-bot
Copy link
Contributor

你的提交 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()) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* 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);
}

谁告诉你文件读完的标志是返回空字符串的?请好好读一读文档,不要想当然。

@hcsp-bot
Copy link
Contributor

恭喜你,你的提交 7842ff3 已经通过我们的CI检查:Your tests passed on CircleCI!

👍 它会被自动merge后revert。请不要骄傲,继续挑战!

@hcsp-bot
Copy link
Contributor

💥 检测到冲突!

你的提交 7842ff3 似乎与当前的主干(master)分支冲突了,请不要气馁,解决后重试。加油!:muscle:

@blindpirate
Copy link
Collaborator

我稍微改了一下这道题目,现在要求多线程读取多个文件,你有兴趣做一下么?

@Scott-YuYan
Copy link
Contributor Author

Scott-YuYan commented Sep 13, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants