Java List to Int List toIntArray(java.util.List list)

Here you can find the source of toIntArray(java.util.List list)

Description

to Int Array

License

Apache License

Declaration

public static int[] toIntArray(java.util.List<Integer> list) 

Method Source Code

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

public class Main {
    public static int[] toIntArray(java.util.List<Integer> list) {
        int[] ret = new int[list.size()];
        int i = 0;
        for (Integer e : list)
            ret[i++] = e.intValue();// w ww  .j  a  v  a  2s  .c  o m
        return ret;
    }
}

Related

  1. listToIntegerArray(List list)
  2. toIntArray(final List numbers)
  3. toIntArray(final List list)
  4. toIntArray(final List list)
  5. toIntArray(final List list)
  6. toIntArray(List list)
  7. toIntArray(List nums)
  8. toIntArray(List ints)
  9. toIntArray(List bytes)