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:
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?