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

Plz help me anyone with code ..

kidding, right?

Hope U understand my point

not really, but keep on hoping

not kidding man if u know how to write code show me that

kidding, right?


not really, but keep on hoping

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.