11 Replies Latest reply: Sep 5, 2007 12:53 PM by 807605 RSS

    Copying the value of a StringBuffer Object

    807605
      Hi

      I need to copy the value of a StringBuffer obeject into another StringBuffer object. How do i this
      For ex
      StringBuffer temp= new StringBuffer("hello");
      //copy the value of temp into temp2
      StringBuffer temp2 = null;
      I[b] need to copy the value of temp to temp2, such that if i make any changes to temp2 those donot affect temp.

      Thank U
      Mansoor