Write a program to remove element at given index by using one of the List interface methods.
Input (List, int) |
Output (List) |
[Lion, Tiger, Cat, Rabbit, Mouse], 1 |
[Lion, Cat, Rabbit, Mouse] |
[Rose, Jasmine, Lotus, Peacock, Cassia], 4 |
[Rose, Jasmine, Lotus, Peacock] |
[1, 2, 3, 4, 5, 6], 9 |
null |
[Red, Blue, Green, White, Black, Pink], -1 |
null |
null, 2 |
null |