this is the first time i have used StringBuffer. if anyone is still awake ... thanks.
nikita
Imagination is more important than knowledge "Albert Einstein"
Balasubramani Dharmalingam
Ranch Hand
Joined: Dec 06, 2004
Posts: 116
posted
0
Variable sb is not yet initialized, default value will be null. So you are getting null pointer exception. Replace the sb declaration with following code.Then it should work