I have an ArrayList containing a list of objects. I'm trying to figure out if the last element of the array contains an object equal to sn.i
arraylist.size() -1
returns an integer, so I can't use it to compare my object to.
Is there a way of doing this so it returns my object value instead of an integer?