title: How do I check the equality of a String and one String-attribute (out of many) of an entry in an ArrayList?
body: <p>I'm trying to create a registry in form of an ArrayList which shall save all kinds of books I've read.
  The program has only two classes. One as a template for the entries (Name: Entry) and one which manages the entries in the ArrayList (Name: Registry).</p>
  
  <p>These are the attributes of Entry:</p>
  
  <pre><code>private final String title;
  private final String mangaka;
  private final String year;
  private final String genre;
  private final String volumes;
  private String completelyScanlated;
  private String licensedInGerman;
  private String read; 
  private String comments; 
  </code></pre>
  
  <p>and thus has this constructor:</p>
  
  <pre><code>public Entry(final String title, final String mangaka, final String year, final String genre, final String volumes, 
  String completelyScanlated, String licencedInGerman, String read, String comment)
  {
      this.title = title;
      this.mangaka = mangaka;
      this.year = year;
      this.genre = genre;
      this.volumes = volumes;
      this.completelyScanlated = completelyScanlated;
      this.licensedInGerman = licensedInGerman;
      this.read = read;
      this.comments = comments;
  }
  </code></pre>
  
  <p>The class "Registry" has only one attribute:</p>
  
  <pre><code>ArrayList&lt;Entry&gt; entries = new ArrayList&lt;Entry&gt;();
  </code></pre>
  
  <p>The user creates an entry via 'Scanner' therefore by typing Strings into the console. The created object is saved in the ArrayList via:</p>
  
  <pre><code>Entry object = new Entry(title, mangaka, year, genre, volumes, completelyScanlated, licensedInGerman, read, comments);
      entries.add(object);
  </code></pre>
  
  <p>Now I want to check whether a String (which is also created with a console input) is equal to the attribute "title". I could check the equality of an input with the method ".contains()" but this method would compare all attributes. Is there a way to check only one attribute?</p>
  
  <p>Here is the non-working code:</p>
  
  <pre><code>public void findEntry()
  {
      Scanner input = new Scanner(System.in);
  
      System.out.println("Which title do you want to search for?");
      String searchedEntry = input.nextLine();
      System.out.println();
      if (entries.contains(searchedEntry)) {
          int x = entries.indexOf(searchedEntry);
          entries.get(x);
          //Entry.showDetails();
      }
  }
  </code></pre>
  
  <p>The result is to given out via the console (that code is working though).</p>
  
  <p>Thanks in advance</p>