iteration « Development « Java Thread Q&A

Home
Java Thread Q&A
1.concurrency
2.Development
3.Exception
4.Notify
5.Operation
6.Socket
7.State
8.synchronize
9.Thread Safe
10.ThreadPool
Java Thread Q&A » Development » iteration 

1. How to multithread collection iteration operating on a predicate?    stackoverflow.com

For sake of abstraction, let's assume that I have a

Map<Double, Collection<Employee>>
where key is salary threshold. Or for people familiar with Google collections it would be as Multimap I want to do ...

2. Iteration over a list (ConcurrentModificationException)    stackoverflow.com

The following code throws a ConcurrentModificationException:

for (String word : choices) {
         List<String> choicesCopy = choices;
         ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.