Hi
I am trying a program with arrays and I am getting an error. So, I need a little help with arrays. I have posted my code please check it
I am getting an errorCode:public class Array { public static void main(String[] args)throws IOException { int[] test; test=new int[3]; test[1]=4; test[2]=3; test[3]=2; System.out.println(test[1]); } }
Any help on this or suggestion.Code:ArrayIndexOutOfBoundsException.
Bookmarks