Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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;
    }
}