Hi aafreen,
I think by now u might have got the answer , if u r still confused then
have a look on this code
class JMM101
{
public static void main(String[] args) {
int i = 0;
while (i++ < args.length )
{
System.out.print("I=" + i );
System.out.println(args[i]);
}
}
}
The exception itself explains the prob .
I=0A
I=1B
I=2C
I=3D
I=4E
I=5F
I=6Exception in
thread "main" java.lang.ArrayIndexOutOfBoundsException
at JMM101.main(JMM101.java:11)
Hope , answered u