While compiling I got this
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
class Maxmin {
public static void main(String args[]) {
if (args.length >0) {
int a = Integer.parseInt(args[0]);
int b = Integer.parseInt(args[1]);
int c = Integer.parseInt(args[2]);
int tmp;
if (a>b) {
tmp=a ;a=b ;b=tmp;
}
if (b>c) {
tmp=b ;b=c ;c=tmp;
}
if (a>c) {
tmp=a ;a=c;c=tmp;
}
System.out.println (a);
}
}
}