
-----------------------------------
lionheart
Thu Apr 28, 2005 7:22 pm

sorry but...
-----------------------------------
is there a way to split a string into many chars..
like
John Doe
into 
variable1 = 'j'
variable1 = 'o'
variable1 = 'h'
variable1 = 'n'

variable1 = 'D'
variable1 = 'o'
variable1 = 'e'
arg im not very gud at java..
i liked turing better lol
twas easier!

-----------------------------------
Andy
Thu Apr 28, 2005 7:23 pm


-----------------------------------
what type of string are you talking about? character array or java String object?

-----------------------------------
lionheart
Thu Apr 28, 2005 7:24 pm

oh...
-----------------------------------
i mean a character array so that you can put the letters of the string in it..
i am aware of..
split() but doesn't that nly work for seperate words

-----------------------------------
wtd
Thu Apr 28, 2005 7:27 pm


-----------------------------------
String s = "Hello";
char

-----------------------------------
lionheart
Thu Apr 28, 2005 7:33 pm

yay it works
-----------------------------------
ok lol
now how do you call it to output >.<

thanks for helping btw
ahh 
stupid me..!
got it

-----------------------------------
Hikaru79
Thu Apr 28, 2005 8:20 pm

Re: yay it works
-----------------------------------
ok lol
now how do you call it to output >.<

Just go through every element of the array.

for (int x=0; x