do point out if i am wrong in any case
I think the output should be
"navMapSimple pollFirstEntry Value :One "
instead of
"navMapSimple pollFirstEntry Value :Two "
cause the firstEntry is with key : 1
and value :One
i am not sure but this is the case. as per me. If i am wrong please try this code with
java 6 compiler
Thanks