title: Comparing String with object
body: <p>I have an <code>addUser()</code> method that adds a new user to the <code>&lt;FacebookUser&gt;</code> users ArrayList.</p>
  
  <pre><code>void addUser() {
      String username;
      String password;
      String passwordHint;
  
      System.out.println("Please type in your desired username:");
      username = input.nextLine();
      if (users.toString().contains(username)) {
          System.out.println("Username already exists!");
      } else {
          System.out.println("Please type in your desired password:");
          password = input.nextLine();
          System.out.println("Please type in your password hint:");
          passwordHint = input.nextLine();
          FacebookUser newUser = new FacebookUser(username, password);
          newUser.setPasswordHint(passwordHint);
          users.add(newUser);
      }
  
  }
  </code></pre>
  
  <p>I'm now trying to make a <code>deleteUser()</code> method and I got stuck at this part. I'm supposed to compare the given password with the the Facebook User's password that is associated with the given username. If the passwords match, I should remove the <code>FacebookUser</code> object from the users ArrayList. </p>
  
  <pre><code>void deleteUser() {
      String username;
      String password;
  
      System.out.println("Please type in your username:");
      username = input.nextLine();
      if (users.toString().contains(username)) {
          System.out.println("Please type in your password:");
          password = input.nextLine();
  
  
      } else {
          System.out.println("Username doesn't exist!");
      }
  }
  </code></pre>
  
  <p>Any help is greatly appreciated!</p>