A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
using an object in other class...
Joined: Oct 27, 2009
Nov 23, 2009 03:06:09
In classA, hash map ,say I have 3 records like empNo,Employee
Now I need to get these 3 values in class B...
I wrote :---
HashA hmapA=new HashA<
,Emloyee> (having getters and setters)
If I do ClassA classA =new ClassA();
// This would mean a new object isn't it?
I have HashB hMapB=new HAshB<String,Employee>
I am getting null in the above!
Joined: Oct 22, 2009
Nov 23, 2009 03:20:40
Joined: Oct 13, 2005
Nov 23, 2009 04:30:42
Embla Tingeling wrote:
Thank you for noticing (
). Closing thread.
rocket mass heater
subject: using an object in other class...
Sorting arraylist on the basis of object
q rom overalltesting.com
Thread - Wait() and Notify();
Object is null
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014