title: In java, is there a way to search for a specific field of a class stored in a linked list?
body: <p>I wrote a class that is to be stored in a linkedlist, with 3 fields in the class. One of these fields is a String, which I would like to search for in the linked list.</p>
  
  <p>Example</p>
  
  <pre><code>LinkedList
        Obj1
            String name = "first";
            int age = 2;
            int size = 4;
        Obj2
            String name = "second";
            int age = 3;
            int size = 6;
        Obj3
            String name = "third";
            int age = 5;
            int size = 8;
  </code></pre>
  
  <p>If this is the linkedlist storing these three objects with the given fields, is there a way to search the linked list for the object with the name "second"? </p>