-1

Beginner at Java here. I cannot figure why I am getting a cannot find symbol on line 16.

package loops;


public class forloops {


public static void main(String[] args) {

    int loopVal;
    int end_value = 11;
    int addition = 0;

    for (loopVal = 0; loopVal < end_value; loopVal++) {

        System.out.prinln("Loop Value = " + loopVal);
    }
}

}
disengage
  • 11
  • 3

1 Answers1

4

It is System.out.println(..)

You wrote System.out.prinln(..), where the compiler does not find the method prinln

markusw
  • 1,975
  • 16
  • 28
  • Wouldn't that give a "method prinln(String) in undefined for the type PrintStream" error? Usually "cannot find symbol" errors are caused by an undeclared variable. – azurefrog Dec 11 '14 at 18:54
  • Just tried it. It gives me: `Test.java:4: error: cannot find symbol System.out.prinln(""); ` – markusw Dec 11 '14 at 18:56