System.out.println("enter the value");
Rectangle rectangle = new Rectangle();
int a = Integer.parseInt(args);
int b = Integer.parseInt(args);
System.out.println(" you have entered these values : " + a + " and " + b);
int area = rectangle.calculate();
System.out.println(" area of a rectange is : " + area);
while executing this i am gettin array out of bound exception,can some body tell me what can i do for this.
vijay umar wrote:can someone please reply to this immediately.
Vijay please Ease Up. In Netbeans if you go into the properties of the project and go into the "Run" section, there is an option to pass command line arguments to the application, google for more info...