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);
    }
}

Comments

Popular posts from this blog

Zeller's Congruence

Property Event-Delegation

Method with variable arguments