eclipse error cannot make a static reference to a non-static field : <p>import java.util.Scanner;</p>

<p>public class Account {
  int number1,number2,sum;</p>

<pre><code>public static void main(String[] args) {
    Scanner input = new Scanner (System.in);
    System.out.println("Enter your first number");
     number1 = input.nextInt();
     System.out.println("Enter your Second number");
     number2 = input.nextInt();
     sum = number1 + number2;
     System.out.println("Your Answer is" + sum);
     input.close();
}
</code></pre>

<p>}</p>
