+ 1

Java: Separate words in a String into substrings with spaces

I want to make some kind of loop that, as long as there are spaces, will cut out each word and put it in a substring I can use and alter later. Is this possible

28th Mar 2018, 2:42 AM
Noah Shrewsbery
Noah Shrewsbery - avatar
5 ответов
+ 1
Thanks for answering! Does the split method put words into separate strings somehow or just order them differently?
28th Mar 2018, 2:50 AM
Noah Shrewsbery
Noah Shrewsbery - avatar
+ 1
Thanks! That String Array was exactly what I needed!
28th Mar 2018, 3:08 AM
Noah Shrewsbery
Noah Shrewsbery - avatar