The answer follows.
After the for
loop,
azBuffer
contains the alphabetic characters in their original order,
bu converted to lower case.
Now do this:
forward
based on azBuffer
.azBuffer
.backward
based on the reversed azBuffer
.
This can be done in two statements, using methods of StringBuffer
.
Fill in the blanks.