Java Utililty Methods Array to ArrayList

List of utility methods to do Array to ArrayList

Description

The list of methods to do Array to ArrayList are organized into topic(s).

Method

ArrayListbyteArrayToArrayList(byte[] byteArray)
Converts the given array of bytes into a Java ArrayList
return byteArrayToArrayList(byteArray, 0);
ArrayListbyteArrayToShortArrayList(byte[] byteArray)
byte Array To Short Array List
ArrayList<Short> temp = new ArrayList<Short>();
for (int i = 0; i < byteArray.length; i = i + 1000) {
    temp.add((short) byteArray[i]);
return temp;
ArrayListtoArrayList(Iterable iterable)
to Array List
ArrayList<T> list = new ArrayList<>();
for (T t : iterable)
    list.add(t);
return list;
ArrayListtoArrayList(Collection collection)
to Array List
if (collection == null) {
    return null;
ArrayList<T> out = null;
if (collection instanceof ArrayList<?>) {
    out = (ArrayList<T>) collection;
} else {
    out = new ArrayList<T>(collection);
...
ArrayListtoArrayList(Collection from)
Convert a Collection to ArrayList
if (from instanceof ArrayList)
    return (ArrayList<T>) from;
return new ArrayList<T>(from);
ArrayListtoArrayList(double[] dd)
to Array List
ArrayList v = new ArrayList(dd.length);
for (int i = 0; i < dd.length; i++) {
    v.add(dd[i]);
return v;
ArrayListtoArrayList(final T... array)
to Array List
final ArrayList<T> retValue = new ArrayList<T>();
for (final T item : array)
    retValue.add(item);
return retValue;
ArrayListtoArrayList(int[] p)
to Array List
ArrayList<Integer> ret = new ArrayList<>();
for (int i = 0; i < p.length; i++) {
    ret.add(i);
return ret;
ArrayListtoArrayList(int[] values)
to Array List
ArrayList<Integer> ar = new ArrayList<Integer>();
for (int i = 0; i < values.length; i++)
    ar.add(values[i]);
return ar;
ListtoArrayList(List list)
to Array List
List<Integer> items = new ArrayList<Integer>();
if (list != null && list.size() > 0) {
    for (String item : list) {
        items.add(Integer.valueOf(item));
return items;