title: How to find the index of matching string in a list java?
body: <p>Lets say there's an array list <strong>student</strong> of strings like</p>
  <pre><code>[&quot;name&quot;],
  [&quot;email&quot;],
  [&quot;address:]
  </code></pre>
  <p>Is there a way to find the index position of list which contains the matching string <em><strong>address</strong></em> <br>
  list.indexOf() only returns the value if the exact match of string is found.
  In this case, student.indexOf(&quot;address&quot;) returns -1 since the exact match is not found.
  I am aware of contains() method but it only tells if the required string is present or not. It doesn't return the index position.</p>