Here you can find the source of copyProbabilities(List
public static void copyProbabilities(List<Integer> targetProbs, List<Integer> destinationProbs)
//package com.java2s; import java.util.List; public class Main { /** Copy the values of target probs into destination probs */ public static void copyProbabilities(List<Integer> targetProbs, List<Integer> destinationProbs) { for (int index = 0; index < targetProbs.size(); index++) { destinationProbs.set(index, targetProbs.get(index)); }/* www . j a v a 2 s. c om*/ } }