if i get a text like "hello world my name is mike"
how can i separated the text without using Tokenizer class??
Printable View
if i get a text like "hello world my name is mike"
how can i separated the text without using Tokenizer class??
How do you want to separate them? By whitespace?
Recommended reading: String (Java Platform SE 6)
i have to put the text in link list
and in the text i have onle letters and space
Okay. Did you read the link I gave you? It links to a very useful function. What happened when you tried it out?
i read it and i don't know if i can use all the methods there beacuse in the homework they recomended that i can use onlt specific method
so i think if i use str.length then i can go all over the text until i get space and get the word to a list
what do u think?
String (Java Platform SE 6)
Delimiter - Wikipedia, the free encyclopedia
It's worth reading these. Even if you don't fully understand.. The API docs are your friend.
thanks i think i solved the problem