import java.util.*;
class ListUtils {
items) {
stati\ void append(ArrayList list, Object[] for Cvnt i=0; i<items.length; i++) list \<dd(items[i] ) ;
static ArrayLi^tcreate(Object[] items) { ArrayList list>* new ArrayList (); append(list, itemę); return list;
>
static void show(ArrayList\list)
iter.hasNext();)
for (Iterator iter = list \t.en6tor () ; System.out.println(iter.n^(t() ) ;
) class Independence {
public static void/fnain (Str ing args[]) {
String[] item^^ { "Kot", "Pies", "Zebra""\ "Tygrys" ); ArrayList listl = new ArrayList();
ListUtils.append(list1, items);
ListUtil3^show(listl);
ArrayLii^t list2 ■ ListUtils.create (
new String[] < "Truskawki”,\"Banany
*%tUtils.show(list2) ;
)