Data Structures

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));
}

}<<-- Add a bracket here

Is there something we can help you with?