Java Noob needs help - Type mismatch: cannot convert from String to int
<p>Doing some homework here (second assignment, still extremely green...). The object is to read in number x and y and provide the number in the hundreds position. </p>

<p>For this, I need to use int's I'd assume, as a requirement is to utilize value-returning methods.</p>

<p>I'm just starting to code this, however I'm hitting compile errors already:</p>

<blockquote>
  <p>Exception in thread "main" java.lang.Error: Unresolved compilation
  problems:
      Illegal modifier for parameter anum; only final is permitted
      Illegal modifier for parameter bnum; only final is permitted
      Type mismatch: cannot convert from String to int at Hundreds.main(Hundreds.java:6)</p>
</blockquote>

<p>Where am I going wrong?</p>

<p>Thanks in advance,</p>

<p>Here is the code so far:</p>

<pre><code>    import java.util.Scanner; 
    public class Hundreds {
    public static void main (String [] args){

        Scanner input = new Scanner(System.in);
        private int anum,bnum;
        System.out.println("Hello, for this assignment we are going to require the user to enter two distinct numbers of their choosing");
        System.out.println("Please ensure the numbers are between 100 and 9999");
        System.out.println("\n");
        System.out.println("Please enter your first Number: ");
        anum = input.nextLine();
</code></pre>
