SCJP 5.0
http://sites.google.com/site/duddlutechnologies/home
SCJP 5.0
http://sites.google.com/site/duddlutechnologies/home
Sandeep Jindal wrote:Now, I change the Key Key(2) such that value of i in it is 1 which is same as of the Key(1).
Sandeep Jindal wrote:Now I change the value of key to 1. Thus when i try to remove key(1), it removed the key whose hashCode is 1 and value is 1 (as implemented in the code), thus key(2) whose hash code was 2 is never removed. Please correct if my understanding is wrong.
SCJP 5.0
http://sites.google.com/site/duddlutechnologies/home
Sandeep Jindal wrote:but what if I have a requirement in such a way that I need to update my keys based on some operations and that is my requirement.
Can you please suggest what to do in that case.
SCJP 5.0
http://sites.google.com/site/duddlutechnologies/home
(OID: 1, NO 2 AND OID: 2, NO. 3 ) is one key
(OID: 2, NO 3 AND OID: 4, NO. 3 ) is another key
(OID: 1, NO 2 AND OID: 2, NO. 3, OID:6, No.1 ) is one key
(OID: 2, NO 3 AND OID: 4, NO. 3, OID:6, No.1 ) is another key
SCJP 5.0
http://sites.google.com/site/duddlutechnologies/home
Order<{1,1}>, Residual1
Order<{1,2}>, Residual2
Order<{2,2}>, Residual3
Order<{1,2}>, Residual1
Order<{1,3}>, Residual2
Order<{2,2}, {1,1}>, Residual3
SCJP 5.0
http://sites.google.com/site/duddlutechnologies/home
Order<{1,2}>, Residual1
Order<{1,3}>, Residual2
Order<{2,2}>, Residual3
Order<{1,1}>, Residual3
SCJP 5.0
http://sites.google.com/site/duddlutechnologies/home