Java List to Int List toIntArray(List list)

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

Description

to Int Array

License

LGPL

Declaration

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

Method Source Code


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

import java.util.*;

public class Main {
    public static int[] toIntArray(List<Integer> list) {
        int[] t = new int[list.size()];
        for (int i = 0; i < t.length; i++)
            t[i] = list.get(i);/*w w w  . j  ava2 s. c o  m*/
        return t;
    }
}

Related

  1. toIntArray(List list)
  2. toIntArray(List list)
  3. toIntArray(List list)
  4. toIntArray(List list)
  5. toIntArray(List list)
  6. toIntArray(List list)
  7. toIntArray(List list)
  8. toIntArray(List values)
  9. toIntArray_impl(List i_list, int i_offset, int i_size)