As for example, there are two lists:
List list1 = Arrays.asList(1.0, 2.0); List list2 = Arrays.asList(\"one_point_zero\", \"two_p
This works for me but is O(n^2):
Map collect = list1.stream() .collect( toMap(Double::doubleValue, item -> list2.get(list1.indexOf(item))));