I have below questions in Collections with respect to
Java.
1> Suppose i have SSN(Social Security Number) as Key in Hashmap,The Value in HashMap being a combination of (customer name,customer address,customer pincode)
HashMap [key,Value]-->[SSN,(customer name,customer address,customer pincode)]
what datastructure i would use for the above implementation in Java and how would i retrieve customer details(name,address,pincode) based on SSN.Example for the above implementation provided will be helpful.
2> I have HashMap of [Key,Value] pair -> [bank account number,telephone no]
HashMap has got 3 entries
Ex:HashMap m = new HashMap();
m.put("12345","08026583026");
m.put("12346","08026583027");
m.put("12347","08026583028");
How do i retrieve telephone number based on bank account number,assume user inputs 12347 and the the result should be 08026583028 ??Example for the above implementation provided will be helpful.??
3> I have HashMap of [Key,Value] -> [telephone no,bank account number]
HashMap has got 3 entries
Ex:HashMap m = new HashMap();
m.put("08026583026","12345");
m.put("08026583027","12346");
m.put("08026583028","12347");
How do i retrieve bank account number based on telephone number,assume user inputs 08026583028 and the the result should be 12347 ??Example for the above implementation provided will be helpful.??
4> Give the Implementation /Algorithm to control 3 elevators in Core Java ??
Help provided will ne highly appreciated.
--
Deepak Lal