title: Comparing elements in a linked list
body: <p>I have a queue implementation as shown below.</p>
  
  <pre><code>static String a = "1 0 2014/03/03 01:34:39 0.0 0.0 0.0";
  static String b = "2 1 2014/03/03 01:34:40 0.0 0.0 0.0";
  static String c = "3 2 2014/03/03 01:34:41 0.0 0.0 0.0";
  static String[] d;
  String e;
  public static void main(String[] args) {
  
      Queue&lt;String&gt; s = new LinkedList&lt;String&gt;();
      s.add(a);
      s.add(b);
      s.add(c);
      }
  </code></pre>
  
  <p>As you see each entry in the list is a string with 7 elements. I would like to compare these entries from each string. For example the first entries from a, b, c using s.</p>