java remove first element from array
String[] stringArray = {"foo", "bar", "baz"}; String[] modifiedArray = Arrays.copyOfRange(stringArray, 1, stringArray.length);
Here is what the above code is Doing:
1. Create an array of strings.
2. Create a new array that is a copy of the original array, but only contains the elements from index 1 to the end of the array.