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));
}
}