Java List to Int List toIntArray(List list)

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

Description

Erstellt Integer-Array aus Liste

License

Apache License

Parameter

Parameter Description
list Eingabe Liste

Return

Integer-Array

Declaration

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

Method Source Code

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

import java.util.List;

public class Main {
    /**//  ww w  .  j  av  a2s .c o  m
     * Erstellt Integer-Array aus Liste
     * 
     * @param list
     *            Eingabe Liste
     * 
     * @return Integer-Array
     */
    public static int[] toIntArray(List<Integer> list) {
        int[] ret = new int[list.size()];
        int i = 0;
        for (Integer e : list) {
            ret[i++] = e.intValue();
        }
        return ret;
    }
}

Related

  1. toIntArray(List intList)
  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 list)
  9. toIntArray(List list)