Jennifer Lawrence :
Quiero pasar un array como argumento a una función sin primer elemento.
Se me ocurrió con esta solución, pero me pregunto si hay mejores maneras a la misma.
List<Integer> numbers = new ArrayList<>();
//... in the meantime numbers is an array that contain 1000 elements;
numbers.remove(0);
myFunction(numbers)
Tostao:
Se puede utilizar subList(firstElement, lastElement);
el método.
Aquí compruebe javadoc .