1
I have a very strange doubt, I have a HashMap
that has these two values
ids("pergunta","IdP");
To pergunta
is a String and IdP
is a Int,
me now to get the value of Idp I have to do int a = ids.get("IdP");
?
1
I have a very strange doubt, I have a HashMap
that has these two values
ids("pergunta","IdP");
To pergunta
is a String and IdP
is a Int,
me now to get the value of Idp I have to do int a = ids.get("IdP");
?
1
No, you have to look for key - which in this case is pergunta
.
int a = ids.get("pergunta");
Browser other questions tagged java hashmap
You are not signed in. Login or sign up in order to post.
IdP
is aInt
, I went to do as you said and gave the error - The method parseint(String) in the type Integer is not applicable for the Arguments (Integer)– Ricardo B
Yes I own that kind of hashmap
– Ricardo B
Thanks @Renan already figured out my problem with your help, I was using Idp instead of the question
– Ricardo B