Java List to Primitive Array toPrimitiveArray(List target_)

Here you can find the source of toPrimitiveArray(List target_)

Description

to Primitive Array

License

Open Source License

Declaration

public static int[] toPrimitiveArray(List<Integer> target_) 

Method Source Code

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

public class Main {
    public static int[] toPrimitiveArray(List<Integer> target_) {
        if (target_ == null)
            return null;
        int[] array = new int[target_.size()];
        for (int i = 0; i < array.length; i++)
            array[i] = target_.get(i).intValue();
        return array;
    }//from  www . ja v a2  s.c om
}

Related

  1. toPrimitiveArray(List array)
  2. toPrimitiveArray(List input)
  3. toPrimitiveArray(List list)
  4. toPrimitivebyList(List list)
  5. toPrimitiveDouble(List values)
  6. toPrimitiveIntArray(List temp)
  7. toPrimitiveIntArray(List values)