posted 20 years ago
Hi ranchers,
well the issue is that i have got a class Emp{}
with some variables.
Now say i have 10 objects of this class and when 2 keys say EmpNo.&Deptno
is given i have to retrieve that objects properties.
Since i had to use two variables as keys
i thought of using HashMap where an object is used to map another object
i.e map.put(object Key,object value)
key(empno,deptno)
values=emp1,emp2 ....
but i had a problem while searching through the table.
Please help me out.
My code is