I would like to do some sort of triple array in java to save/load some data, but I want to have some sort of key. Let's say I want a list, that contains the phone numbers of 2 of my friends, William and Mike. So I want to do something like getPhoneNumber("William"); and it will return the number based on the string "William" I gave it. I am not sure how to explain this, I hope someone can guide me.
EDIT: I forgot to mention, I need to save 3 things. So let's say based on the name "William" It should have like, phone number and age or something like that