DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Turn An Array Into A Collection
String[] array = ...; List<String> list = Arrays.asList( array );






Comments
Snippets Manager replied on Wed, 2009/04/01 - 10:27pm
List list = new ArrayList(Arrays.asList(array));it supports more operation.