/*Addition of two integer
Save this file Addition.java/*
class Additiond
{
public static void main(String cd[])
{
int a,b,add;
a=Integer.parseInt(cd[0]);
b=Integer.parseInt(cd[1]);
add=a+b;
System.out.println("Addition
is:"+add);
}
Run pogram :
1. Open cmd
2. Compile the pogram: javac
Addition.java
3. Then run pogram :
java Addition (add no.1)
(add no.2)
Eg: java Addition 5 6
Out put is : Addition is : 11