problems importing scanner class
<p>I am trying to execute the following code but keep getting this error:</p>

<blockquote>
  <p>Error: Main method not found in class ScannerDemo, please define the main method as:
     <code>public static void main(String[] args)</code></p>
</blockquote>

<pre><code>import java.util.Scanner;
class ScannerDemo
public class Main {

    public static void main (String [] args)
    {
        Scanner sc = new Scanner(System.in);
        String userName;

        System.out.println("Enter a number");
        username = sc.nextLine();
        System.out.println("your number is" + username + "enter your next number");
        username2 = sc.nextline();
        System.out.println("your total is" + username2 );     
    }
}
</code></pre>

<p>I think I must be importing the Scanner class wrong, I have tried different methods but nothing has worked for me yet.</p>
