title: Synchronized Queue?
body: <p>I have two threads for an online game im making. One thread receives two X and Y number, and the other thread sends out the X and Y numbers to everyone logged into the server. Basically I need a queue, that will allow the first thread to add a 2D array to the Queue, and to keep doing this, while at the same time, pulling the arrays off and deleted the array from the queue to use to send to the other players. Is there a way to do this? I know I need a synchronized queue, but how do I synchronized one, is that called a blocking Queue?</p>
  
  <p>Overall I need a queue that is synchronized, that will allow two threads to throw stuff in and to take stuff out. Is it possible?</p>
  
  <p>-Dan</p>