Java List to Int List toIntArray(List integerList)

Here you can find the source of toIntArray(List integerList)

Description

to Int Array

License

Apache License

Declaration

public static int[] toIntArray(List<Integer> integerList) 

Method Source Code

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

import java.util.List;

public class Main {
    public static int[] toIntArray(List<Integer> integerList) {
        if (integerList == null)
            return null;

        int[] intArray = new int[integerList.size()];
        for (int i = 0; i < integerList.size(); i++) {
            intArray[i] = integerList.get(i);
        }/*from w  w w  .ja v  a  2 s .  c  o  m*/
        return intArray;
    }
}

Related

  1. toIntArray(List list)
  2. toIntArray(List nums)
  3. toIntArray(List ints)
  4. toIntArray(List bytes)
  5. toIntArray(List a)
  6. toIntArray(List intList)
  7. toIntArray(List list)
  8. toIntArray(List list)
  9. toIntArray(List list)