| Author |
How to convert a string to char?
|
Ramu Rondla
Greenhorn
Joined: Oct 04, 2003
Posts: 9
|
|
Hello friends, Is there any way to convert a string to char? example "java" to 'java' Thanks, Ramu
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24057
|
|
|
"java" is four characters -- it doesn't make sense to ask about converting a string to a single character. "java".charAt(0) is the first one ('j') and "java".charAt(3) is the last one ('a').
|
[Jess in Action][AskingGoodQuestions]
|
 |
William Barnes
Ranch Hand
Joined: Mar 16, 2001
Posts: 965
|
|
|
See examples here: click
|
Please ignore post, I have no idea what I am talking about.
|
 |
 |
|
|
subject: How to convert a string to char?
|
|
|