001package horstmann.ch08_queue;
002import java.util.ArrayList;
003import java.util.Collections;
004
005public class QueueTester
006{
007        public static void main(String[] args)
008        {
009                BoundedQueue<String> q = new BoundedQueue<String>(10);
010
011                q.add("Belgium");
012                q.add("Italy");
013                q.add("France");
014                q.remove();
015                q.add("Thailand");
016
017                ArrayList<String> a = new ArrayList<String>();
018                a.addAll(q);
019                System.out.println("Result of bulk add: " + a);
020                System.out.println("Minimum: " + Collections.min(q));
021        }
022}