title: How to assign StringBuilder to String value at Android?
body: <p>I have a dynamic message Stringbuilder value in my codes. 
  But i want to create temp string and i want to save message value to temp value and than clean message value:
  For example:</p>
  
  <pre><code>StringBuilder messages;
  StringBuilder [] temp = new StringBuilder[1000];
  ...///other part of codes
  temp[i]=message;
   String text=intent.getStringExtra("theMessage");
  i++;
   messages.delete(0, messages.length());
  </code></pre>
  
  <p>A mean, when my <strong>messages</strong> come 34 i want to save <em>temp[0]</em> and clean <strong>message</strong> and i want to increase i with i++ and than message come 23 than <em><code>temp[1]=2</code>3</em> and so on... How can i do this at android ?</p>