Map<String, Future<String[]>> futures = new LinkedHashMap<String, Future<String[]>>();
futures.put(Line_Num, executorService.submit(api));
for (Map.Entry<String, Future<String[]>> entry : futures.entrySet()) {
String futuresKey = entry.getKey();
Future<String[]> futuresValue = entry.getValue();
try {
String[] resStr = futuresValue.get();
if (null != resStr) {
String strKey = resStr[0];
String strResult = resStr[1];
}
}
}