I want to implement peek and remove methods , similar to Java’s Queue.peek() and Queue.remove() , in Blackberry application. I have a custom queue implementation, but how do I get to peek at elements and remove elements from queue?
Please help,
Thanks in advance.
Try to use Arrays class… if you need to peek, take last element from Object array, to remove just delete last one:
Using example: