5. ArrayList: Access


#1

import java.util.ArrayList;

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

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

    weeklyTemperatures.add(78);
    weeklyTemperatures.add(67);
    weeklyTemperatures.add(89);
    weeklyTemperatures.add(94);
    
    System.out.printLn( weeklyTemperatures.get(1) );
    
	}
}

What's wrong with my code I don't understand.


#2

Ah I had a capital L on " .println( "


#3

It should be "Integers" not integer


#5