<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
<In what way does your code behave incorrectly? Include ALL error messages.>
```
Replace this line with your code.
<do not remove the three backticks above>
import java.util.ArrayList;
public class TemperaturesForEach {
public static void main(String args) {
ArrayList<Integer> weeklyTemperatures = new ArrayList<Integer>();
weeklyTemperatures.add(78);
weeklyTemperatures.add(67);
weeklyTemperatures.add(89);
weeklyTemperatures.add(94);
for (Integer temperature : weeklyTemperatures) {
System.out.println(temperature);
}
}
}
Hi, do you still need help?
system
Closed
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.