Quote:
Originally Posted by 2mths
No idea what about FIFO structures (I can work out what it stands for but that's not helping) so looping is all I've got.
|
As you've worked out, FIFO == First In First Out. Basically, pick one end of the array to add things to, and only remove things from the other end of the array. Doesn't matter if this is the "bottom" of the array, but it's usually easier that way.
Quote:
Originally Posted by timwilky
You them move into things like java collections and arrays etc. But now you no longer have those nice pointers that allowed you to do fancy tricks, like stepping through arrays etc using pointer arithmetic.
|
Java actually does support pointer arithmetic (as of Java 1.5). The only thing you can't do is uninitialise an object (though you can finalize() which is tantamount to the same thing really), and you can't deallocate memory.