2
我想实现一个喷口作为套接字监听器。要检查如何在暴风雨阻挡过程的工作,我Scanner.in
WordCounter例子的喷口为folows风暴水嘴中的阻塞过程
public void nextTuple() {
/**
* The nextuple it is called forever, so if we have been readed the file
* we will wait and then return
*/
Scanner scanner=new Scanner(System.in);
scanner.next();
/* Code to read from file */
}
当我尝试运行此出现了一些错误。如果我删除扫描程序代码,该示例运行良好。有人能告诉我如何在风暴中处理阻塞流程?
什么是错误? – Chiron