When i tried running this code I get this error..I dont know where i went wrong..
Exception in thread \"main\" java.lang.ArrayIndexOutOfBoundsException: 0
public class NewMain { public static void main(String[] args) { int argslen=args.length; int argsValue[] = new int[argslen]; for (String i:args) { int d = 0; argsValue[d]=Integer.parseInt(i); System.out.print(argsValue[d]+"\t"); } } }