Balu Sadhasivam wrote:
Use map instead of List. with CustId as key , it would be easy to retrieve Customer information.
Hi Balu,
Fthank you for commenting on this topic.
can I presume that you are referring to hashmap for my problem? After reading the example on hashmap from
here.
It seems that i have to create another "map" which is almost similar to arraylist..
ashMap hm = new HashMap();
hm.put("Rohit", new Double(3434.34));
hm.put("Mohit", new Double(123.22));
hm.put("Ashish", new Double(1200.34));
hm.put("Khariwal", new Double(99.34));
hm.put("Pankaj", new Double(-19.34));
Now the challenge for me is to use different elements from two existing arraylists and the coding which i have now does not seems to work(or rather do not allow me to put in the codes that i wanted).
Thanks
Regards,
Jon