title: How can I add an Array into a Queue?
body: <p>Is it possible to add an array into specifically, a <code>ConcurrentLinkedQueue</code>? If so, how exactly would the <code>.add</code> statement look like? </p>
  
  <p><strong>THIS IS HOMEWORK RELATED</strong>, however, my entire program is meant to perform calculations on <code>MyObjects</code> (the default constructor of <code>MyObjects</code> generates random values to perform a ton of calculations on).</p>
  
  <p>For example:</p>
  
  <pre><code>//Note: I couldn't use the Diamond Braces for the Queue-type when posing this question
  
  ConcurrentLinkedQueue theLinkedQueue {MyObjects[]} = 
                   new ConcurrentLinkedQueue{MyObjects[]}();
  
  MyObjects[] theArray = null;
  
  for(int i = 0; i &lt; 100; i++){
     theArray = new MyObjects[CONSTANT_SIZE]; 
     theLinkedQueue.add(theArray(objparameter1, objparameter2));
  }
  </code></pre>
  
  <p>The program implements <em>multi-threading</em> and in my thread class I've passed the <code>Queue</code> into the <code>constructor</code>, and am attempting to take off a <code>MyObject</code> array which a <code>MyObject</code> temp will point to, but so far I'm only capable of adding a single <code>MyObject</code> to my <code>Queue</code> at a time and pulling it. I want to be able to add the same amount of <code>MyObjects</code> as individual components rather than individually. I've attempted various lines of code only for <em>NetBeans IDE</em> to recommend a method to throw an <code>UnsupportedOperation Exception</code>. How could I add arrays into my <code>ConcurrentLinkedQueue</code>?</p>
  
  <p>(Also apologies if my question is dense or confusing, first time posting here). </p>