Java error cannot find symbol class Scanner.using jdk 6
<pre><code>import java.util.scanner;

import javax.swing.JOptionPane;

public class FirstHomeJavaApplet{

public static void main(String[] args){

int num1=2;

int num2=2;

int sum;

sum=num1+num2;

System.out.println("My first home practice of java applet"); 

 JOptionPane.showMessageDialog(null, num1 + "+" + num2 + " = " + sum, "Result of Addition", 

JOptionPane.INFORMATION_MESSAGE);

}

}
</code></pre>

<p>This is my code but it is giving 1 error.I am using jdk 6 to run this applet.</p>

<p>The error is :cannot find symbol</p>

<pre><code>symbol:class scanner

location:package java.util

import.java.util.scanner;

               ^
</code></pre>

<p>Thanks..</p>
