Android List to Array Convert toIntArray(final List pItems)

Here you can find the source of toIntArray(final List pItems)

Description

to Int Array

Declaration

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

Method Source Code

//package com.java2s;
import java.util.List;

public class Main {
    public static final int[] toIntArray(final List<Integer> pItems) {
        final int[] out = new int[pItems.size()];
        for (int i = out.length - 1; i >= 0; i--) {
            out[i] = pItems.get(i);/*from w  w w  .  jav a 2 s .c om*/
        }
        return out;
    }
}

Related

  1. toByteArray(final List pItems)
  2. toCharArray(final List pItems)
  3. toDoubleArray(final List pItems)
  4. toFloatArray(final List pItems)
  5. toLongArray(final List pItems)
  6. toShortArray(final List pItems)