Java help

Hello, I was wondering if there was a way to specify which remove I want to use when removing an element from an ArrayList. There are two removes: remove(int index) and remove(Object o), and it seems Leetcode's compiler uses the Object one. Is there a way to specify that I want to use the index one?

Comments (0)