Here you can find the source of mergeIntegerResult(List
public static int mergeIntegerResult(List<Integer> result)
//package com.java2s; //License from project: Apache License import java.util.List; public class Main { public static int mergeIntegerResult(List<Integer> result) { int total = 0; for (int it : result) { total += it;/* w ww . j ava2 s .c om*/ } return total; } }