[Solved] What’s wrong in that multithread method?
[ad_1] Problems was not only in threads but in algorithm too: start.set(start.get() + 1); Should be start.set(end.get() + 1); The next thing is that I should set new value to for field start in the beginning and save initial value in thread-local variable. /** * Builds map of anagrams */ private void buildAnagramMap() { System.out.println(“Starting … Read more