java.io.InputStream - read Strings separated by whitespaces
From: Angus Parvis (angusparvis_at_spamyourself.gmx.at)
Date: 11/02/03
- Next message: Tor Iver Wilhelmsen: "Re: Instantiating a class read in from user input"
- Previous message: c: "toolkit beep - MS error perhaps"
- Next in thread: Anthony Borla: "Re: java.io.InputStream - read Strings separated by whitespaces"
- Reply: Anthony Borla: "Re: java.io.InputStream - read Strings separated by whitespaces"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 02 Nov 2003 20:51:02 GMT
I want to read Strings from the java.io.InputStream System.in. Like
java.io.BufferedReader.readLn() reads from the Stream line-by-line i
want to ready word-by-word, separated by whitespaces.
I already got the advice to use a java.io.StreamTokenizer. But i'm new
to Java and, though trying to apply it to my problem i couldn't solve
the problem. I have to write the program for my studies an have to
finish till tuesday. So please forgive my stupidity and *please* help
out with some code. Thank you very much.
- Next message: Tor Iver Wilhelmsen: "Re: Instantiating a class read in from user input"
- Previous message: c: "toolkit beep - MS error perhaps"
- Next in thread: Anthony Borla: "Re: java.io.InputStream - read Strings separated by whitespaces"
- Reply: Anthony Borla: "Re: java.io.InputStream - read Strings separated by whitespaces"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
Loading