instance « StringBuffer « Java Data Type Q&A





1. Initializing stringbuffer instance variable    forums.oracle.com

I have a problem in that i need to store in the buffer variable, a gien amount of '*' characters. Its great that i can append with a for loop after i have initializedit but need to be able to initialize it to carry a given amount of '*' characters from the outset. Therefore i need the initialization of the stringbuffer ...