S
Sharp
Hi
Heres the deal, i want to read a string backwards, a character at a time.
The string will be read from a file.
My approach so far is to read a line at a time using bufferedreader
readLine().
Once I have the line stored in a variable.
What is the best way to read the string backwards a character at a time.
Is there any particular class I can use that reads backwards 1 character at
a time?
I dont want to use the for loop and use charAt() method because the loop is
hardcoding,
and may may not need to read backwards all the way to the begininng.
Any help appreciated
Cheers
Sharp
Heres the deal, i want to read a string backwards, a character at a time.
The string will be read from a file.
My approach so far is to read a line at a time using bufferedreader
readLine().
Once I have the line stored in a variable.
What is the best way to read the string backwards a character at a time.
Is there any particular class I can use that reads backwards 1 character at
a time?
I dont want to use the for loop and use charAt() method because the loop is
hardcoding,
and may may not need to read backwards all the way to the begininng.
Any help appreciated
Cheers
Sharp