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