Java List from listOfIntegers2ArrayOfInts(List xs)

Here you can find the source of listOfIntegers2ArrayOfInts(List xs)

Description

list Of Integers Array Of Ints

License

Apache License

Declaration

public static int[] listOfIntegers2ArrayOfInts(List<Integer> xs) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.*;

public class Main {
    public static int[] listOfIntegers2ArrayOfInts(List<Integer> xs) {
        int[] xa = new int[xs.size()];
        for (int i = 0; i < xa.length; ++i) {
            xa[i] = xs.get(i);/*from w w  w  .j  ava  2s  .  com*/
        }

        return xa;
    }
}

Related

  1. listOf(T... elements)
  2. listOf(T... elems)
  3. listOf(T... values)
  4. listOfArrays(T[]... values)
  5. listOfExceptionsAsString(List exs)
  6. listOfItems(List items, String separator, String finalConjunction)
  7. listOfOne()
  8. listOfOne(T x)
  9. listOfStrings(int size, String prefix)