Hmmm, I got a question:
In java, how do you find a specific object in a list provided the info that object on the list should have? I mean, a list goes from 0, infinite(fine by me) and contains data, or an object filled with data. Now you don't really wanna go from 0, 40 just to find the correct object, you would rather want to have the object coming to you instantly. Like if you could write in the data in the list to get to it. Though this works in lua, but not java...
A brief example:
List:
0: 0,0,0
1: 0,0,1
2: 0,0,2
3: 0,0,3
4: 0,0,4
5: 0,0,5
6: 0,0,6
7: 0,1,0
...
You want the data in 7, but you don't really know that 7 contains the data. So you do a for loop though all of them to find the perfect match. But this takes performance... So we'd like to go directly to the object with the data you require, meaning no for loop. But how the heck would you do this if theres over 1000 objects on the list and only one match?
So is there any way to do that shortcut, to prevent lag?