I am having the following method:
public String getResult() {
List serversList = getServerListFromDB();
List ap
Not quite clear what do you mean, but if you just want to run some process on these lists on parallel you can do something like this:
List list1 = Arrays.asList("1", "234", "33");
List list2 = Arrays.asList("a", "b", "cffffd");
List list3 = Arrays.asList("1331", "22", "33");
List> listOfList = Arrays.asList(list1, list2, list3);
listOfList.parallelStream().forEach(list -> System.out.println(list.stream().max((o1, o2) -> Integer.compare(o1.length(), o2.length()))));
(it will print most lengthy elements from each list).