Chacha
2
Q:

java execute for cycle parallel thread

fooCollection.parallelStream().forEach(foo -> {
  			//DO things here
            foo.count();
        });

//Check exception version
fooCollection.parallelStream().forEach(foo -> {
  			//DO things here
  			try{
            	foo.count();
            }catch(Exception e){ 
              throw new RuntimeException(e);
            }
        });
1

New to Communities?

Join the community