Java ".class expected"
<pre><code>import java.util.Random;
import java.util.Scanner;

public class Lottery
{
    private int[] lotteryNumbers = new int[5];
    private int counter;
    private int[] userNumbers = new int[5];
    private Scanner keyboard = new Scanner(System.in);  
    public Lottery()
    {
        for(counter = 0; counter &lt; 5; counter++)
        {
            lotteryNumbers[counter] = nextInt(int 10);
        }
    }
</code></pre>

<p>There is more code after, but there are no errors there, so I'm not gonna include it.
Anyway, the line that says "lotteryNumbers[counter] = nextInt(int 10);" get a ".class expected" error.</p>
