How to Know Whether an Object with Specified Name Exists For a Class are not

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Oct 2008
Posts: 26
Reputation: babusek is an unknown quantity at this point 
Solved Threads: 1
babusek babusek is offline Offline
Light Poster

How to Know Whether an Object with Specified Name Exists For a Class are not

 
0
  #1
Nov 17th, 2008
HI Folks,

Suppose say Class ("DaniWeb") Contains 3 Objects
1.SunSystems
2.Microsoft
3.Yahoo

Now user has entered an Object name suppose say (Yahoo) .. and we need to confirm if the

User Specified object exists in that class are not , if not we have to create an object with the

User specified name ..?


Plz help me anyone with code ..

Hope U understand my point
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 706
Reputation: stultuske is a jewel in the rough stultuske is a jewel in the rough stultuske is a jewel in the rough 
Solved Threads: 84
stultuske's Avatar
stultuske stultuske is offline Offline
Master Poster

Re: How to Know Whether an Object with Specified Name Exists For a Class are not

 
0
  #2
Nov 17th, 2008
Originally Posted by babusek View Post
Plz help me anyone with code ..
kidding, right?

Originally Posted by babusek View Post
Hope U understand my point
not really, but keep on hoping
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 26
Reputation: babusek is an unknown quantity at this point 
Solved Threads: 1
babusek babusek is offline Offline
Light Poster

Re: How to Know Whether an Object with Specified Name Exists For a Class are not

 
0
  #3
Nov 17th, 2008
not kidding man if u know how to write code show me that
Originally Posted by stultuske View Post
kidding, right?


not really, but keep on hoping
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 706
Reputation: stultuske is a jewel in the rough stultuske is a jewel in the rough stultuske is a jewel in the rough 
Solved Threads: 84
stultuske's Avatar
stultuske stultuske is offline Offline
Master Poster

Re: How to Know Whether an Object with Specified Name Exists For a Class are not

 
0
  #4
Nov 17th, 2008
I know how to write code, but I have (as I stated earlier) not the slightest clue as to what you mean. if you are trying to do what I think you're trying to do: I doubt it's possible to let the user choose at runtime the name of the variables, since they have to be declared within the .java file.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC