File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes a Collection type that is fixed in size and like a Queue Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "a Collection type that is fixed in size and like a Queue" Watch "a Collection type that is fixed in size and like a Queue" New topic
Author

a Collection type that is fixed in size and like a Queue

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I am looking sth. like Queue actually. When I add a new element it should be always added in the beginning and
it must fixed size, say N.

If the size exceeds N, it must delete or ignore the elements at the bottom...
But N elements must be available all the time...
By the way I am using Java 1.4..
Tom Blough
Ranch Hand

Joined: Jul 31, 2003
Posts: 263
google "circular queue".

Cheers,


Tom Blough<br /> <blockquote><font size="1" face="Verdana, Arial">quote:</font><hr>Cum catapultae proscriptae erunt tum soli proscripti catapultas habebunt.<hr></blockquote>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: a Collection type that is fixed in size and like a Queue
 
Similar Threads
programming to the interface
programming to the interface
need help making an applet work to display info..
How to correctly use a fixed size thread pool?
What is a "bounded" queue ?