Hello, I have this little piece of code
System.out.println("Write a sentence: "); String sentence = tastatur.next(); String temp; String divider = " "; temp = sentence.split(divider);
The problem is that when I enter a sentence only the first word gets stored in the string. For instance if I enter "dum di du", only "dum" will get stored. How can I solve this so the whole sentence gets stored in the string?