How to transform List to another List [duplicate]
public static <F,T> List<T> transform(List<F> fromList, Function<? super F,? extends T> function You might want to read up the API docs for Lists.transform() and Function, but basically the caller of the transform provides a Function object that converts an F to a T. For example if you have a List<Integer> intList and you want to … Read more