Error: Cannot find symbol


#1

So I’ve been experiencing in every lesson that I get an error for the line “System.out.printIn();”.
It doesn’t recognize the second dot in the line, just gives me this:

Temperatures.java:12: error: cannot find symbol
System.out.printIn( weeklyTemperatures.get(1) );
^
symbol: method printIn(Integer)
location: variable out of type PrintStream
1 error

Now I get this every time with this same particular line. I tried writing the dot with different languages, like using the UK English keyboard, the US English keyboard and my own language, Estonian, which I primarily use.
It had no effect, I still got this error. The only way I can get past these exercises is by copying the same line from the exercise description.

Why am I getting this error and how can I avoid it? I don’t want to be copying this line every time.


#2

it is System.out.println and NOT System.out.printIn (lower case L and not upper case i)


#3

good catch @nil6344

@codetauruz, println is short for print line, so ln is line spelled without vowels, that might make it easier to remember


#4

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