Kriss Tan

Greenhorn
+ Follow
since Oct 21, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Kriss Tan

Hi Paul,

I revisit the codes and tried some sample codes and found out certain things I would like to clarify with you.



Why do we need to create a Set Map.Entry object to store the rank. entry set?

I tried it by just storing it in the arrayList and it still works...Any reason why you particularly store it in a Set?



I changed to the above code written.

Looking forward to your reply.

Thanks!
15 years ago
Hey Paul,

I had spent some time reading through the API and tutorials but am unable to find a sample for comparing objects in Map.Entity.

Is it possible for you to provide me with some codes relating to comparing Map.Entity objects to work on with.

Thanks.
15 years ago
Hi Paul, thanks for replying.

Is it possible for you to briefly explain the codes?

What is Map.Entry? etc.. I am still learning more about hashmap in the process..

Thanks!
15 years ago
Hi, would appreciate if anyone can help me out on this.

I have a series of keys and values that I would like to add into a hashmap.

I am printing out the order using the values, only one key will be selected although I have got 3 keys. I am sure that this is the problem of the same values in my Arraylist. Can anyone suggest a solution for this?

What i need is that if it had taken out the 1st key then it will move on to retrieve the 2nd key and so on even though the values are the same.


keys values
1 0.0
2 0.0
3 0.0


15 years ago