Saturday, August 13, 2011

Convert array to arraylist in java with example

Here is the simple example, how to convert arrays to ArrayList or List in java.

Object[] array = new Object[]{"12","23","34"};
java.util.List list = Arrays.asList(array);


No comments:

Post a Comment