All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.asteraether.tomlib.util.CollectionUtil Maven / Gradle / Ivy

The newest version!
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.github.asteraether.tomlib.util;

import java.util.Arrays;
import java.util.List;

/**
 *
 * @author neumann6
 */
public class CollectionUtil {

    public static List asList(int[] arr) {
        Integer[] arrObj = new Integer[arr.length];
        for (int i = 0; i < arr.length; i++) {
            arrObj[i] = arr[i];
        }
        return Arrays.asList(arrObj);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy