JavaFX List View - Get currently selected item's index?
<p>I'm trying to implement a feature and I need the index number of the currently selected item in the list view. So if it's 4th on the list I need a method that will return 3 because I need to edit the corresponding object in an ArrayList.</p>

<p>How can I do this?</p>