Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how can i use a string name as an onject name.please help!

807597Jan 10 2005 — edited Jan 11 2005
hi it seems like an easy one but i can not find it anywhere.how can i use the name of a string as a name of an object such as the code(my problem is the code)...

public void oda(String name1){
String name2=name1+"s";
String name3=name1+"ss";

TextArea name1=new TextArea();
TextArea name2=new TextArea();
TextArea name3=new TextArea();
}
i think my problem is clear but to be sure..
how can i give a name to an object in my textarea which is already using as a string.
thank u .
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 8 2005
Added on Jan 10 2005
4 comments
115 views