title: Android updating linked-list
body: <p>I have 6 textviews and 15 buttons.</p>
  
  <p>I want to make <code>Linked list</code> that is empty and have 6 slots and when I press button to update that list with number 1-15(every Button one number),
  when its gets to 6 items on list to erase first and add new one.</p>
  
  <p>If you need something else ask
  I can upload some code that I was using but it will not help
  Edit:</p>
  
  <pre><code>LinkedList list = new LinkedList();
      list.add(textview1.getText().toString());
      list.add(textview2.getText().toString());
      list.add(textview3.getText().toString());
      list.add(textview4.getText().toString());
      list.add(textview5.getText().toString());
      list.add(textview6.getText().toString());
  </code></pre>
  
  <p>textviews are empty at begining.
  and button would do this</p>
  
  <pre><code>public void update() {
  for (int i=0; i&lt;6; i++) {
      String text = memoryQueue.get(i);
      textViews.get(i).setText(text);
  }
  </code></pre>
  
  <p>}</p>