Have the user to get either a decimal number as well and get back an answer.
import java.util.Scanner;
public class AOR2
{
public static void main(String[] arg)
{
Scanner input = new Scanner(System.in);
System.out.print("Please Enter the Length: ");
int Length = input.nextInt();
if(Length >=0)
System.out.println("Valid Entry");
else
System.out.println("Invalid Entry");
System.out.print("Please Enter the Width: ");
int Width = input.nextInt();
if(Width >= 0)
System.out.println("Valid Entry");
else
System.out.println("Invalid Entry");
}
}