this program displays each character entered in the input as a seven segment digit.
For e.g, if the input is 123
The output is stored in three
string buffers one for each output line. As each input digit is processed,append four characters to each buffer(three for the digit itself plus a space) For e.g., if the current digit is 9, th eprogram would append " _ " to the first buffer, " |_| " to the second buffer and " _| " to the third buffer.
I have tried the program by printing a single digit. It worked, but with multiple digits using string buffer, it gives me a null pointer exception. What am I doing wrong here?
Thanks in advance
[ December 03, 2003: Message edited by: vidu mayur ]
[Fixed overlong line in code tags - Jim]
[ December 03, 2003: Message edited by: Jim Yingst ]