@Override
		public void run() {
			synchronized (queue) {
				while (!completed) {
					if (queue.isEmpty()) {
						try {
							queue.wait();
						} catch (InterruptedException e) {
							// TODO Auto-generated catch block
							e.printStackTrace();
						}
					} else {
						System.out.println(Arrays.toString(queue.removeFirst()));
					}
				}
			}
		}