dsArrayList3/13


#1

One exercise
https://www.codecademy.com/courses/learn-java/lessons/data-structures/exercises/arraylist?action=lesson_resume&link_content_target=interstitial_lesson
My code looks right and I’ve looked at other examples but I still can’t figure out why it’s wrong, please help me.

import java.util.ArrayList;

public class Temperatures {
	
	public static void main(String[] args) {

    ArrayList<Interger> weeklyTemperatures = new ArrayList<Interger>();

	}
}

Error: Temperatures.java:7: error: cannot find symbol
ArrayList weeklyTemperatures = new ArrayList();
^
symbol: class Interger
location: class Temperatures
Temperatures.java:7: error: cannot find symbol
ArrayList weeklyTemperatures = new ArrayList();
^
symbol: class interger
location: class Temperatures
2 errors


#2

There is only one r in integer.


#3

wow, the trials you face when coding at 6 am.


#4

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