Take a word and put letters into array?

Ive looked up and down every page of a google search a million times now, suprising i havent found the source for this once.

Lets say i take the word "source", i was wondering how you would go about taking the single letters and putting them into an array, or just single variables.

so

s = x

o = x2

u = x3

etc.

id love if someone could post the code to an array though, it would be very helpful.

Thanks so much!!!!

[470 byte] By [miles42] at [2007-9-30 18:03:07]
# 1
String.toCharArray()?
Mr.E.H. at 2007-7-6 18:33:22 > top of Java-index,Other Topics,Algorithms...
# 2
String mystr = "source";char[] mychars = mystr.toCharArray();for (int i=0; i<mychars.length; i++)System.out.println(mychars[i]);>
fossillj at 2007-7-6 18:33:22 > top of Java-index,Other Topics,Algorithms...