SCJP 5
SCJP 5
Originally posted by Thirumalai Muthu:
Hi, I used parentheses but still getting the same error.Please Help.Thanks
SCJP 5.0<br />SCWCD 5.0
SCJP 5.0<br />SCWCD 5.0
SCJP 5
Originally posted by Thirumalai Muthu:
Hi Sorry Henry for not posting the code.Thanks Charmy I got it but Should not the output be
suzuki
honda
TVS
instead of suzuki
honda
null
As I have overridden the hashcode and equals methods in class bcd.Please clarify on this.Thanks
SCJP 5
In the above code I have used Strings as keys and I have got the output as
suzuki
yamaha
TVS
but when the code is being changed to like this(line 1 and 2)
I really don't understand why I am getting null. Sorry Henry I was not able to understand your explanation. I would appreciate if you explain it in detail.Thank
SCJP 5
Originally posted by Thirumalai Muthu:
Ok. In what way do I need to change the code so as to get the output as
suzuki
yamaha
TVS.
SCJP 5
SCJP 5
Originally posted by Thirumalai Muthu:
Hi Henry, I tried both of your substitution codes but still I am getting the same old output
SCJP 5
Originally posted by Thirumalai Muthu:
Hi henry, I have properly overridden the hashcode method.Please check the code which I have given above.Thanks
SCJP 5
Arch enemy? I mean, I don't like you, but I don't think you qualify as "arch enemy". Here, try this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|