j2me - Does a List have any property to keep track of 'key' that identify the item
问题 How do you usually deal with Lists and the fact that they don't have a property to clearly identity an specific item ? So far, the only solucion I could come up with is to put the key I use at the beginning, followed by a hyphen and the text that is shown on every item. This way when I retrieve the text from the selected item I can get the key for the item. This is how I do it, but surely there's gotta be a better solution and I'd really like that you could share your experience in this kind