Parallel lists vs list of class with multiple variables
<p>I am creating a list of x,y values for tracking positions. Working on android optimization is very important, so I am wondering which method would be better from a resource usage standpoint.</p>

<p>Method 1:
Create a class(Position) containing an int for x and y, then create a list: positions.</p>

<p>Method 2:
Create parallel lists: positionsX and positionsY.</p>

<p>I am asking because method 1 seems to be the most user friendly for OO coding, but I don't know enough about the inner workings of Java or android and I'm afraid the overhead of the extra class would cancel out any benefits.</p>

<p>Or are they close enough that it doesn't really matter?</p>
