
-----------------------------------
dodobird
Tue Nov 30, 2004 8:02 pm

java.lang.ArrayIndexOutOfBoundsException
-----------------------------------
i dont know what this error is or how to fix it plz help 
full error :

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
	at test.main(test.java:6)

 ----jGRASP wedge2: exit code for process is 1.


this is after i have compiled and try to run the program


heres my program :

import java.io.*;
class test 
{
public static void main (String args [])
{
int m = Integer.parseInt(args[0]);
int d = Integer.parseInt(args[1]);
int y = Integer.parseInt(args[2]);
int dy =0;
for (int nm=1; nm