View RSS Feed

Java String

All about Java String.

  1. StringBuffer Functions

    by , 04-26-2012 at 07:38 PM
    Few StringBuffer methods has many uses which is being explained by the following program:

    1. capacity()
    String buffer’s current capacity is returned.

    2. length()
    String buffer’s length is returned.

    3. charAt(int index)
    Specified sequence character which is presented by string buffer are returned.

    4. setCharAt(int index, char ch)
    At specified index, the character of this string buffer has been set to ch