Java Array to ArrayList toArrayList(List list)

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

Description

to Array List

License

Open Source License

Declaration

public static List<Integer> toArrayList(List<String> list) 

Method Source Code

//package com.java2s;

import java.util.ArrayList;

import java.util.List;

public class Main {
    public static List<Integer> toArrayList(List<String> list) {
        List<Integer> items = new ArrayList<Integer>();
        if (list != null && list.size() > 0) {
            for (String item : list) {
                items.add(Integer.valueOf(item));
            }//  w  w  w . j  a va 2 s .  c  o m
        }
        return items;
    }
}

Related

  1. toArrayList(Collection from)
  2. toArrayList(double[] dd)
  3. toArrayList(final T... array)
  4. toArrayList(int[] p)
  5. toArrayList(int[] values)
  6. toArrayList(Object pObject)
  7. toArrayList(String str)
  8. toArrayList(String[] ss)
  9. toArrayList(T... items)