across the network: Kyle Brady: Blog  |  Kyle Brady: Fiction  |  Kyle Brady: Projects  |  Kyle Brady: Profile contact
across the internet: on Twitter | on Facebook | more...

Old Content:

Fixed-Size Array Circular Queue, In Java




I had another project due at Midnight tonight, implement a class called "FixedSizeQueue" that uses a fixed-size circular array for a queue.  I believe I've flipped the normal usage of head and tail, but it works just the same anyways.  It should also be usable as a stand-alone class, instantiated with either void or an integer as a parameter, depending on what outcome you want.

It was due at midnight tonight, and I was done earlier, so this is a scheduled post.

All code is now available via SVN, and a web browsing utility.

Note:  I am not advocating using this code in place of doing your own homework, or in any situation other than pure interest.  However, in the event that you do, I am not responsible for any resultant issues (legal, moral, or ethical) that may arise.  Finally, I am not presenting these as perfect cases, the best way to approach the problems, nor the fastest.  They are, simply, viable solutions.

Old Content posts are leftovers from a less structured, less civilzed era that are kept for posterity.
Kyle can be found on Twitter and MySpace, or reached via email.

submit to reddit Add to Mixx! Share on Facbeook Retweet
Printable Version Printable Version

More Old Content Pieces

see more...


Commenting Rules

The following is a basic set of rules that are enforced for all commenters.

Any violations of these rules will result in comment deletion, user bans, or both.

  1. No excessively foul language.
  2. No racist remarks.
  3. No SPAMing, unrelated linking, or otherwise unnecessary promotion of outside material.
  4. No trolling.
  5. Be respectful.
  6. Be valuable.
  7. Feel free to respond, argue, or counter-point an article - but do so coherently and intelligently.
  8. Use a personal nickname, commenting account, or moniker. Do not use your business' or website name/account.
  9. Do not trackback/pingback to this post unless your content is relevant.
also available as a standalone page

  • kalisky
    link is broken
  • Sorry, I changed repositories for all the code and didn't fix the links.

    It should work now.

    --Kyle
blog comments powered by Disqus
Kyle Brady: Blog
coherent thoughts on diverse topics


Site Navigation:
About Columns Ethics Rules Contact