1/**
2 * Copyright(C) 2003
3 * All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
4 *
5 * Permission to use, copy, modify, and distribute this
6 * software and its documentation for EDUCATIONAL purposes
7 * and without fee is hereby granted provided that this
8 * copyright notice appears in all copies.
9 *
10 * @date : September 1, 2003
11 * @authorĀ : Salih Yurttas
12 */
13
14
15using System;
16using System.Text;
17
18public class String03
19{
20
21 public static void Main(string[] args)
22 {
23 string a = "goldenapple";
24
25 StringBuilder b = new StringBuilder(a);
26 StringBuilder c = new StringBuilder(a);
27
28 Console.WriteLine("a = {0}", a);
29 Console.WriteLine();
30
31 b.Remove(0,6);
32
33 Console.WriteLine("a = {0}", a);
34 Console.WriteLine();
35
36 Console.WriteLine();
37
38 Console.WriteLine("b = {0}", b);
39 Console.WriteLine();
40
41 Console.WriteLine("c = {0}", c);
42 Console.WriteLine();
43
44 c.Remove(6,5);
45
46 Console.WriteLine("c = {0}", c);
47 Console.WriteLine();
48 }
49
50}