arraylist in java initialization code example Example: java initalize arraylist List<Type> list = Arrays.asList(elem1, elem2,..., elemN);