Question: method in java 2. removeAt(pos): remove element at position pos. If position exceeds the length of the list throw an exception Example List: 467259 removeAt(2)
method in java
2. removeAt(pos): remove element at position pos. If position exceeds the length of the list throw an exception Example List: 467259 removeAt(2) List: 46259 removeAt(0) List: 625 9 removeAt(-1) IllegalArgumentException List: 6259 removeAt(7) IndexOutOfBoundsException List: 6259
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
