Hi, got a question about Scanner class that comes with java sdk 1.5.

Scanner getin=New Scanner(System.in);

String text=""

text=getin.next();

getin.next() takes only complete word, but how can i take separate words to
readed in text variable. If i enter "New York" this scanner .next() cant take it.

Thanks.