7/13 i fixed it as a moderator told me to do but the same thing happened


import java.util.ArrayList;

public class TemperaturesC {

public static void main(String[] args) {

	ArrayList<Integer> weeklyTemperatures = new ArrayList<Integer>();
	weeklyTemperatures.add(2, 111);

for(int j = 0; j < weeklyTemperatures.size(); j ++)
System.out.println( weeklyTemperatures.get(j) );





it says Use the example to help you create the for loop and use the get method.


nvm i wrote j ++ instead of j++


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.