Upgrading to new-style Strings: Difference between revisions

m
*>Monkey 05 06
*>Monkey 05 06
Line 72: Line 72:
   Display("%d", new_Str.CompareTo("DoG", true)); // displays non-zero
   Display("%d", new_Str.CompareTo("DoG", true)); // displays non-zero


Note that when doing case-sensitive comparisons, you can use the == operator instead:
Note that when doing case-sensitive comparisons, you can use the == and != (equal and not equal) operators instead:


   String new_Str = "dog";
   String new_Str = "dog";
Anonymous user