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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

character array question

Status
Not open for further replies.

kmfna

MIS
Sep 26, 2003
306
0
0
US
Hello all,

This is probably going to be the single dumbest question ever, but as I can't seem to find an example of doing so, I thought I'd turn to the pro's. Is there a way to print a character array as a string (ie all in one statement without a loop) ?? This is driving me nuts, I've tried the .tostring() and the Convert.tostring(...) to no avail. I'm sure there is an easier way to do this I just haven't found it...and I have WAAY too many character arrays to have a loop for each of them.

Thanks in advance
Kevin

- "The truth hurts, maybe not as much as jumping on a bicycle with no seat, but it hurts.
 
[tt]String[/tt] has a constructor that takes a character array.

[tt]new String(charArray);[/tt]
 
very cool,

Thanks a lot guys!

Kevin

- "The truth hurts, maybe not as much as jumping on a bicycle with no seat, but it hurts.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top