This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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...