when the while loop is exited do you have to append a null character to end the string?
No. The String class does that, after each character is appended.
when the while loop is exited do you have to append a null character to end the string?
No. The String class does that, after each character is appended.