Java tutorial
//package com.java2s; import java.util.ArrayList; import java.util.List; public class Main { public static List<Integer> toAbsIntegerList(final List<Integer> array) { final ArrayList<Integer> retValue = new ArrayList<Integer>(); for (final Integer item : array) retValue.add(Math.abs(item)); return retValue; } }