Keep getting "Temperatures.java:12: error: cannot find symbol" error even when there's nothing wrong


#1

https://www.codecademy.com/courses/learn-java/lessons/data-structures/exercises/arraylist-access?action=lesson_resume

I get this error “Temperatures.java:12: error: cannot find symbol” whenever I run the “System.out.printIn” function. The operator indicates that they can’t find the second dot in my “System.out (.) <–this dot printIn” even when I typed them right. This happened in all of the Java lessons. Have I done something wrong?



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.printIn(weeklyTemperatures.get(1));
	}
}



#2

The code sample screams of tabs mixed with spaces issues. Perhaps address that issue and the real one, if there is any, will jump out.


#4

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