How can i iterate Arraylist of an object in Kotlin?
I have a arrayList of an object , and i cannot iterate my list forward or reward , i don't want to display my message in these case but it does .
private fun handleLivePopUp() { // vous êtes en direct
val id = presenter.programItems?.indexOf(presenter.currentProgram)
// val it = presenter.programItems?.listIterator()
// val previous = if (id == 0) presenter.programItems!!.size - 1 else id?.minus(1)
if (id != null){
if(id == 0){ //si liste ==...