for example:
public static LinkedList<String, Double> ll = new LinkedList<String, Double>;
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.
from your question, I think (not 100% sure) you are looking for
java.util.LinkedHashMap<K, V>in your case, it would be
LinkedHashMap<String, Double>from java doc:
if you do want to get element by
list.get(5), you could :so you can get Entry element by
Entry entry = list.get(5), thenentry.getKey()gives you the STring, andentry.getValue()gives you the Double.