I want to store 3 values in 1 key.
a Hashmap can only hold 1 key, 1 value, so that can not be used.
So what other ways do I have to get from the one key the Value A/B/C.
Key: String
Values: String/String/int
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Create an object to hold your 3 values and then the new object is your value in the Key-value pair.
Here is a sample implementation: