title: Cannot find symbols compilation error
body: <p>I think I formatted something wrong or there is a logic error, in all honesty I don't know.  I commented in at the bottom of the program the errors.  All help is extremely appreciated.</p>
  
  <pre><code>public static void main (String args[]) {
      String userInput;
  
      Scanner kb = new Scanner (System.in);
  
      System.out.print("Enter a string of characters: ");
      userInput = kb.nextLine();
      int length = userInput.length();
  
      for (count=0; length&lt;count; count++) {
            char letter=userInput.charAt(count);
            System.out.print(letter + " ");
          }
    }
  </code></pre>
  
  <p>Errors:</p>
  
  <pre><code>javac "StringDown.java" (in directory: /home/user/Downloads)
  StringDown.java:16: cannot find symbol
  symbol  : variable count
  location: class StringDown
      for (count=0; length&lt;count; count++)
           ^
  StringDown.java:16: cannot find symbol
  symbol  : variable count
  location: class StringDown
      for (count=0; length&lt;count; count++)
                           ^
  StringDown.java:16: cannot find symbol
  symbol  : variable count
  location: class StringDown
      for (count=0; length&lt;count; count++)
                                  ^
  StringDown.java:18: cannot find symbol
  symbol  : variable count
  location: class StringDown
           System.out.print(userInput.charAt(count));
                                             ^
  4 errors
  Compilation failed.
  </code></pre>