public static ArrayList > createParty(String[] names,int[] levels)

{

ArrayList > party = new ArrayList >(6);

for(int i=0;i<6;i++) {

HashMap hm = new HashMap ();

hm.put("Name", names[i]);

hm.put("Level", levels[i]);

party.add(hm);

}

return party;

}

Explanation:

If the Sample data below is typed when the code above is executed

Beedrill Venasaur Charizard Blastoise Butterfree Weedle

88 84 84 84 80 82

The expected Output will be:

Beedrill 88

Venasaur 84

Charizard 84

Blastoise 84

Butterfree 80

Weedle 82