Exercise 3 - ArrayList - Code Doesn't Execute


#1



The ArrayList exercise (https://www.codecademy.com/courses/learn-java/lessons/data-structures/exercises/arraylist?action=lesson_resume) doesn't execute the code and as soon as I hit "Run", the compilation begins and continues forever. No error messages displayed.
I am unable to understand, what I am doing wrong.


import java.util.ArrayList;

public class Temperatures {
    
    public static void main(String[] args) {
    
    ArrayList<Integer> weeklyTemperatures = new ArrayList<Integer>(); 
    


    }
}


#2

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