public static <T>List<T> roCopyList(Collection<T> l){
  return Collections.unmodifiableList(new ArrayList<>(l));
}

public static < T > List < T > roCopyList ( Collection < T > l ) { return Collections . unmodifiableList ( new ArrayList < > ( l ) ) ; }
return a unmodifiable list that has all elements of the given collection .
