943,865 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 638
  • Java RSS
Nov 17th, 2008
0

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

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 1
Light Poster
babusek is offline Offline
28 posts
since Oct 2008
Nov 17th, 2008
0

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

Click to Expand / Collapse  Quote originally posted by babusek ...
Plz help me anyone with code ..
kidding, right?

Click to Expand / Collapse  Quote originally posted by babusek ...
Hope U understand my point
not really, but keep on hoping
Reputation Points: 935
Solved Threads: 356
Nearly a Posting Maven
stultuske is offline Offline
2,497 posts
since Jan 2007
Nov 17th, 2008
0

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

not kidding man if u know how to write code show me that
Click to Expand / Collapse  Quote originally posted by stultuske ...
kidding, right?


not really, but keep on hoping
Reputation Points: 10
Solved Threads: 1
Light Poster
babusek is offline Offline
28 posts
since Oct 2008
Nov 17th, 2008
0

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

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.
Reputation Points: 935
Solved Threads: 356
Nearly a Posting Maven
stultuske is offline Offline
2,497 posts
since Jan 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: How to call a variable from other class
Next Thread in Java Forum Timeline: Suspected Vector Trouble





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC