Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

char array to String

Status
Not open for further replies.

merlinv

Programmer
Jun 11, 2001
32
US
How do I convert a char array to a string?

An example would be good.

Thanks.

Merlin Vilhauer
 
Code:
private String convertCharArray(char [] tmp)
{
    return new String(tmp);
}

HTH,

Stephan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top