title: Is it possible to change an element in a queue?
body: <p>Let say if I have a queue of integer (or any class T), can I change the value of the element in the queue?
  More specifically, if I define the queue as follow:</p>
  
  <pre><code>Queue&lt;int&gt; q = new Queue&lt;int&gt;();
  </code></pre>
  
  <p>Can we change the value of its element similar to how we deal with an array? (if q were an array, we would be able to do something like this: <code>q[0]=1</code> to change its element). I just would like to simplify the scenario and use int as example, but my intention was trying to peek at the 1st item of a class T in a queue, do some calculations and update the queue for other programs to process. I do not want to dequeue it because it the sequence in the queue will then not be the same as the original. Hope what am trying to do make sense. Please advise.</p>