We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm trying to split a list of words into separate words, then into individual letters. e.g. from "dog cat ball" into "dog" "cat" "ball" into "d" "o" "g" "c" "a" "t" "b" "a" "l" "l"
I currently have:
String wordList = "laugh fly cold drink jump";
String [] word = split(wordList, " ");
int letters;
for (int i = 0; i < word.length; i++) {
letters = Integer.parseInt(word[i]);
but it's not doing anything, really.
I'm totally new to processing and don't have a clear understanding on how to use strings and split and parseInt and all that.
Any help is appreciated!
Answers
Here you go:
[edit] ops late:)
[edit2] if this is going to go huge, you might want to use StringBuilder() as its is faster.
Something like this?