Question and answer is powered by AnsPress.io
I want to add two integer number using command line argument.
class command {
public static void main(String ar[]) {
int a,b;
a=Integer.parseInt(ar[0]);
b=Integer.parseInt(ar[1]);
System.out.println((a+b));
}
}