Java ArrayList to Array convertArrayListToIntArray(ArrayList al)

Here you can find the source of convertArrayListToIntArray(ArrayList al)

Description

convert Array List To Int Array

License

Open Source License

Declaration

public static int[] convertArrayListToIntArray(ArrayList<Integer> al) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.*;

public class Main {
    public static int[] convertArrayListToIntArray(ArrayList<Integer> al) {
        int[] list = new int[al.size()];
        for (int i = 0; i < al.size(); i++)
            list[i] = al.get(i);// w w  w  .  j  ava 2  s.  c  o  m
        return list;
    }
}

Related

  1. byteArrayListToByteArray(ArrayList indata)
  2. byteArrayListToCharToString(ArrayList byteArrayList)
  3. convertArrayListToHexString(ArrayList al)
  4. convertIntArrayList2array(ArrayList alInput)
  5. convertStringArrayListToArray(ArrayList al)
  6. doubleArrayList2Array(ArrayList a)
  7. listToArray(ArrayList tempList)