Collections.copy

List<String> names = Arrays.asList(new String[nameList.size()]);
    Collections.copy(names, nameList);

  List<TradeBookingRepresentation> retryTrades = new ArrayList<>(trades);

原文地址:https://www.cnblogs.com/tonggc1668/p/8610412.html