I have
LinkedHashMap<String, List<String>> hMap;
I want to get List<String> by position not on key.
I don’t want to use iterate.
Is there any other way to get Value based on index ?
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.
You can’t get the value of the
Mapbased on index,Maps just don’t work that way. A workaround would be to create a new list from your values and get the value based on index.