Package java.util
Class Arrays

Public Method asList

static List asList(Object[] a)

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Returns a fixed-size list backed by the specified array. Changes to the returned list "write through" to the array. This method acts as bridge between array-based and collection-based APIs, in combination with Collection.toArray. The returned list is serializable.

Example

   String str[] = {"Hello","World"};
   List stringList = Arrays.asList(str);

The example above returns the list.