Method readLine() in Java...help
Hello,
I am new to programming and confused. Could someone please help me? For the class BufferedReader, it has a method readLine (), which reads up to the newline character and returns that String; however, I would like to have method that would read up to some alternate character such as whitespace. Is there any way or method to do this in Java? Thanks. |
Depending on what exactly you're trying to do, I'd read in the line and then tokenize it with a StringTokenizer.
|
All times are GMT -5. The time now is 12:13 PM. |