DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Java (http://www.daniweb.com/forums/forum9.html)
-   -   How to Know Whether an Object with Specified Name Exists For a Class are not (http://www.daniweb.com/forums/thread157848.html)

babusek Nov 17th, 2008 8:12 am
How to Know Whether an Object with Specified Name Exists For a Class are not
 
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

stultuske Nov 17th, 2008 8:46 am
Re: How to Know Whether an Object with Specified Name Exists For a Class are not
 
Quote:

Originally Posted by babusek (Post 737803)
Plz help me anyone with code ..

kidding, right?

Quote:

Originally Posted by babusek (Post 737803)
Hope U understand my point

not really, but keep on hoping

babusek Nov 17th, 2008 8:50 am
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
Quote:

Originally Posted by stultuske (Post 737824)
kidding, right?


not really, but keep on hoping


stultuske Nov 17th, 2008 8:54 am
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.


All times are GMT -4. The time now is 6:11 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC