illegal start of type
<p>guys. Few days ago I started to learn java, and I don't understand, Why NetBeans can't compile the class?</p>

<pre><code>import java.util.Scanner;

public class FirstMode 
{

    Scanner input = new Scanner(System.in);
    public String arrayCall()
    {
        return "Press the array of digits (Example: 1, 2, 3, 5, 6)";
    }
    String array = input.nextLine();
    for(int i = 0; i &lt; array.length(); i++)
    {

    }
}
</code></pre>

<p>Error on the line with the variable "i". Why?</p>
