UNB/ CS/ David Bremner/ teaching/ old/ cs1083/ java/ QueueTest.java
import java.util.Scanner;
class QueueTest {
    public static void main(String[] args){
        String sentence = "Shooby doo wop she bop" ;
        Scanner words =new Scanner(sentence);
        LinkedQueue<String> queue1=
            new LinkedQueue<String>();
        LinkedQueue<String> queue2=
            new LinkedQueue<String>();
        while(words.hasNext()){
            String word=words.next();
            queue1.enqueue(word);
            queue2.enqueue(word+2);
        }
        queue1.print();
        queue2.print();
        queue1.concatenate(queue2);
        queue1.print();
        queue2.print();
    }
}
//