Java tutorial
//package com.java2s; import java.util.List; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; public class Main { public static <T> void iteratorResult(List<Future<T>> results) { // TODO Auto-generated method stub for (Future<T> future : results) { try { System.out.println(future.isDone() + "," + future.get()); } catch (InterruptedException | ExecutionException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } }