remove first element from nodelist code example
Example: remove first element of arraylist
ArrayList<Integer> myList = new ArrayList<>();
myList.add(1);
myList.add(2);
myList.add(3);
myList.remove(0);
System.out.println(myList); //2, 3
ArrayList<Integer> myList = new ArrayList<>();
myList.add(1);
myList.add(2);
myList.add(3);
myList.remove(0);
System.out.println(myList); //2, 3