String[] temp=null;
String st3=new String(temp);

I use this code but error message is shown.

I need how to recover this error.

Recommended Answers

All 5 Replies

why you put string[] into string..

i can't get it...

hi... thanks for your reply.......

i stored one string in string array.. Now i need to convert this string as object in java.

just i know only this idea now..

i don't know how exact i given...

String arr[]={"s","y"};
String str=new String(arr.toString());

Hi musthafa.aj ,
Thanks for your reply.I use this code and got output.
Thank you..

mark it as solved..

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.