Let's say I have this:
// Create arrayList
ArrayList<Point> pointList = new ArrayList<Point>();
// Adding some objects
pointList.add(new Point(1, 1);
pointList.add(new Point(1, 2);
pointList.add(new Point(3, 4);
How can I get the index position of an object by searching one of its parameters? I tried this but doesn't work.
pointList.indexOf(this.x(1));
Thanks in advance.