I'm just a beginner in Java. Please help in executing this simple program. It throws an exception:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at sum.main(sum.java:7)
The Program
class sum {
public static void main(String args[]){
int a,b,c;
a=Integer.parseInt(args[0]);
b=Integer.parseInt(args[1]);
c=a+b;
System.out.println(c);
}
}