It's not a secret anymore!*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes reading character from a string array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "reading character from a string array" Watch "reading character from a string array" New topic
Author

reading character from a string array

amal shah
Ranch Hand

Joined: May 05, 2006
Posts: 92
Hello,
got stuck at the following instance:

say for example i have String s[]={"amal","shah"}
now here s[0] has value amal...now i want to read characters from the array s[0].....i initially thought of using parseType method for converting string to char...but found out that this method is applicable for converting strings to numeric values...unable to get through...help apprecited.

thanking you
amal shah
Srikanth Basa
Ranch Hand

Joined: Jun 06, 2005
Posts: 241
If you wish to process character by character.

[ August 17, 2006: Message edited by: Srikanth Basavaraju ]
Gowher Naik
Ranch Hand

Joined: Feb 07, 2005
Posts: 643
amal shah
Ranch Hand

Joined: May 05, 2006
Posts: 92
thanks srikanth and gowher...got it.....
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: reading character from a string array
 
Similar Threads
how to stop a thread in j2me
SCJP 1.4----73%
size of a string
reference in an array
servlet calling xhtml file