Scanner error Symbol not found
<p>I have imported the java class but i keep getting this error with the following code</p>

<p>Error: C:\Users\xiangzheng\Desktop\passoff\P70.java:51: error: cannot find symbol
        String a = scanner.next;</p>

<p>Code:   </p>

<pre><code>Scanner scanner = new Scanner(sentence);
        scanner.useDelimiter(" ");
        String a = scanner.next;
</code></pre>
