I have an Arraylist, for example
ArrayList<SomeType> newObjectList = new ArrayList<>();
I want to use an object from the Arraylist without using the method remove.
I don't want to remove the object from the list, just to refer to it and use its methods.
How can I do this? Thanks.