title: How do I get the index of a certain element in an ArrayList?
body: <p>I'm learning about <code>ArrayList</code>s and I was wondering, how do you get the index of a certain element in an <code>ArrayList</code>?</p>
  
  <p>I know you can use <code>myArray.contains("string")</code>, but how can I find the index of the element without doing something like <code>myArray.get()</code>?</p>