System.arraycopy getting ava.lang.ArrayIndexOutOfBoundsException.. I am trying to copy data from one array to the next. but I am getting a exception
privat
Because the length of array is 1.
array
The declaration array[] = { "NO DATA YET" }; creates an array of length 1 with one item in it.
array[] = { "NO DATA YET" };
Instead declare destination array as:
private String array[] = new String[8];