LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Method readLine() in Java...help (https://www.linuxquestions.org/questions/programming-9/method-readline-in-java-help-361639/)

KissDaFeetOfSean 09-09-2005 12:23 AM

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.

btmiller 09-09-2005 12:41 AM

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.