StringBuilder Indexer


using System;
using System.Text;
class Sample
{
    public static void Main()
    {
        StringBuilder sb = new StringBuilder();

        sb.Append("java2s.com");

        Console.WriteLine(sb[3]);
    }
}

The output:


a
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.