title: Converting from Integer value to StringBuffer with zeros as the default value
body: <p>I am trying to form a StringBuffer with an initial value of 00000..</p>
  
  <p>My problem is the initial value is dependent on an integer variable and based on the value of integer variable that many number of zeros should be there in StringBuffer..</p>
  
  <p>E.g. int length=9, therefore my StringBuffer should form with 000000000....(9 zeros)...</p>
  
  <p>I am not getting a way out of this problem. Can anyone please guide me on this.</p>
  
  <p>One way I figured out is by getting the integer value and storing that many values in String array and then writing string array to StringBuffer but seems to be very inefficient method. Please guide me.</p>