Getting Id to update with the index of my list
How do I get my ID property to update with my list of objects after a user rents a book, right now if user picks 1, the next iterated list will have book with ID 2 at first index, i want the ID to change so it matches the index of the book so its clear for the user that the input corresponds with the displayed book.
Program: https://hatebin.com/kirywteyov
Class: https://hatebin.com/eoylrqdzsz
0 Replies