Java ArrayList Create getArrayListForArray(Object[] rowData)

Here you can find the source of getArrayListForArray(Object[] rowData)

Description

get Array List For Array

License

Apache License

Declaration

private static List<Object> getArrayListForArray(Object[] rowData) 

Method Source Code


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

import java.util.ArrayList;
import java.util.List;

public class Main {
    private static List<Object> getArrayListForArray(Object[] rowData) {
        ArrayList<Object> res = new ArrayList<Object>();
        for (int n = 0; n < rowData.length; n++) {
            res.add(rowData[n]);/*from w w w .j a  v a 2 s.  co  m*/
        }
        return res;
    }
}

Related

  1. getArrayList()
  2. getArrayList(final Object o, final Class clazz)
  3. getArrayList(List list)
  4. getArrayList(Map map, Object obj)
  5. getArrayList(String[] args)
  6. getArrayListFromInt(int number)
  7. getArrayListFromString(String wordSequence, String separator)
  8. newArrayList()
  9. newArrayList()