Hi,
I have a nice little question for all you ranchers to shed your light upon.
For an assignment I have done I made use of the almighty Scanner object to walk through a
String containing some nice text (including newline's etc.).
However, it has now come to my attention that the program is supposed to work with jre 1.4. Argh, that destroys my shiny Scanner!
So now I need some suggestions to implement the same behaviour without using a Scanner object.
I need to be able to check whether the input String contains more lines (i.e. scanner.hasNextLine()) and if so output the next line (i.e. line = scanner.nextLine()).
I welcome your suggestions. Something with a BufferedInputStream perhaps?
[ November 15, 2007: Message edited by: David Coppens ]