public static void Main()
string[] s = { "Bill", "Gates", "James", "Apple", "Net", "Java", "Jaba" };
string temp = string.Empty;
for (int i = 1; i < s.Length; i++)
for (int j = 0; j < s.Length-i; j++)
if (string.Compare(s[j], s[j + 1]) > 0)
for (int i = 0; i < s.Length; i++)
Console.WriteLine(s[i] + " ");