providing user input for a java class
<p>I have the following class:</p>

<pre><code>class Area
{
    //Get User Input for classes
    int length;
    int width;

    public Area(int x,int y)
    {
        length = x;
        width = y;
    }

    public int getArea() {
        return width * length;
    }

    public static void main(String[] args) 
    {
        Area folk = new Area(4,5);
        System.out.println("Area of 4 * 5 is: " + folk.getArea());
    }
}
</code></pre>

<p>I have another class that i use to get user input:</p>

<pre><code>import java.util.Scanner;

class Incoming
{
    public static void main(String[] args) 
    {
        Scanner reader = new Scanner(System.in);
        System.out.println("Enter the first number");
        //get user input for a
        int a = reader.nextInt();
        System.out.println("Input Value Is: " + a);
    }
}
</code></pre>

<p>In the first class i want a user to provide the input instead of the predefined values (i.e. <code>Area folk = new Area(4,5)</code>)</p>

<p>How can that be done?</p>
