Upgrading to new-style Strings: Difference between revisions
m
→StrComp -> String.CompareTo
*>Monkey 05 06 m (→Eek! TIPO! :P) |
*>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 == | 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"; |