Would you like to react to this message? Create an account in a few clicks or log in to continue.

    String Builder

    avatar
    Admin
    Admin


    Posts : 77
    Join date : 2009-07-28

    String Builder Empty String Builder

    Post  Admin Tue Jul 28, 2009 1:48 pm

    The String Builder class is a memory wise cheap alternative for the string structure since it only uses one instance to do the job.

    Constructors
    StringBuilder string1 = new StringBuilder(String Value,capacité)
    avatar
    Admin
    Admin


    Posts : 77
    Join date : 2009-07-28

    String Builder Empty Re: String Builder

    Post  Admin Tue Jul 28, 2009 1:52 pm

    Append(all)
    Adds the value parameter to the SB Object.

    Insert(index,string value)
    Self defined, an advanced Append();

    Remove(int index,int length)
    Removes Length of chars since index.

    Replace("old value","new string")
    Self Defined.

    ToString()

      Similar topics

      -

      Current date/time is Mon May 20, 2024 11:03 am