title: How to get the item before the last item of an ArrayList in kotlin?
body: <p>How to get the item before the last item of an ArrayList in kotlin?</p>
  
  <p>I  have a list like</p>
  
  <pre><code>val myList = listOf("item1", "item2", "item3", "item4", "item5")
  </code></pre>
  
  <p>I want to get "item4" from myList</p>