I am using String Array declare as zoom z[]=new String[422];. But this array stores value from 0 to 32, so I got null pointer except
zoom z[]=new String[422];
0
32
null pointer except
no, there is no way to make array length dynamic in java. you can use ArrayList or other List implementations instead.
ArrayList
List