|
-
November 30th, 2005, 05:18 PM
#1
Scanner class
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|