using System;
class MainClass {
public static void Main() {
string myString = String.Concat("Friends, ", "Romans");
string myString2 = String.Concat("Friends");
bool boolResult;
boolResult = String.Equals("bbc", "bbc");
Console.WriteLine("String.Equals(\"bbc\", \"bbc\") is " + boolResult);
boolResult = myString.Equals(myString2);
Console.WriteLine("myString.Equals(myString2) is " + boolResult);
boolResult = myString == myString2;
Console.WriteLine("myString == myString2 is " + boolResult);
}
}
|