Data Structures


#1
ArrayList<Integer> weeklyTemperatures = new ArrayList<Integer>();
weeklyTemperatures.add(78);
weeklyTemperatures.add(67);
weeklyTemperatures.add(89);
weeklyTemperatures.add(94);
weeklyTemperatures.add(2, 111);
for(int j = 0; j < weeklyTemperatures.size(); j ++)

{
System.out.println( weeklyTemperatures.get(j));
}

}<


#2

Is there something we can help you with?