Sum of two numbers from command line
class Sum {
public static void main(String[] args) {
float a = Float.parseFloat(args[0]);
float b = Float.parseFloat(args[1]);
System.out.println(a + b);
}
}
public static void main(String[] args) {
float a = Float.parseFloat(args[0]);
float b = Float.parseFloat(args[1]);
System.out.println(a + b);
}
}
Comments
Post a Comment
Post Your Valuable Comments