A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
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.
I agree. Here's the link:
subject: using an object in other class...
q rom overalltesting.com
Thread - Wait() and Notify();
Sorting arraylist on the basis of object
Object is null
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014