PK-Yadav / java-learning-pappuYadav

0 stars 0 forks source link

Doesn't work when a line has multiple words #15

Open the-bytecode opened 6 years ago

the-bytecode commented 6 years ago

https://github.com/PK-Yadav/java-learning-pappuYadav/blob/dd79e089f6df3b8fa70b39388871944d9a911299/multi-threading-task2/repeating-word-count/src/main/java/com/java/learning/task/multithreading/tasks/wordcount/WordCounterService.java#L52

PK-Yadav commented 6 years ago

yes, actually i am assuming line will have only one word, in other case like lines can contain words with space separated or comma separated then i have to use the parser, Like DocumentReaderWritter parse which i have written in previous module.