Re: Word problem...PROBLEM!
Write a set of methods for treating an array of character of characters as queue. It should include method for insertion and deletion.
Re: Word problem...PROBLEM!
Have you started to write any code yet?
Please show us what you have and we can help you move forward..
Re: Word problem...PROBLEM!
I would recommend using a doubly linked list. You'll need to keep track of the head/tail nodes, but you'll only need to concern yourself with adding a node at the tail and removing nodes from the head (or vise-versa). Using an array would work too, but I think is a little bit counter-intuitive and inefficient.
Re: Word problem...PROBLEM!
Quote:
Originally Posted by
JavaPF
Have you started to write any code yet?
Please show us what you have and we can help you move forward..
honestly i haven't started making yet because it makes me kinda confuse on where to start... can you help me sir?:confused:
Re: Word problem...PROBLEM!
If you're unsure on how to program in Java, I'd suggest reading Trail: Learning the Java Language (The Java™ Tutorials).
Re: Word problem...PROBLEM!