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!

How do you convert a string into a character array? 1

Status
Not open for further replies.

DevlsAdvocate

Programmer
Feb 21, 2004
1
0
0
US
I'm soo confused, please help me!
 
String.toCharArray(); (which is not static)

This allows things like:

[tt]String myString = "my String";
char[] myChars = myString.toCharArray();[/tt]

or using the implicit String object:

[tt]char[] myChars = "my String".toCharArray();[/tt]

What do you need the char[] for? (Not questioning your need... just curious.)

-DG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top