string RSS

Follow our string RSS feed for all blog posts regarding anything string. Thanks for reading and we hope you enjoyed your visit. If you're looking for more articles use our search above or visit The Programmer blog for the latest and greatest.

compare, String

Typically programmers become accustom to using the == operator when comparing strings. While this is certainly valid syntax in Java, there is a catch that you should know about. The Catch == compares object references .equals() compares string values Explained == performs a reference equality check, to determine whether the two objects (strings in this case) refer to the same object in the memory. The equals() method...

Read more

c#, cast, enum, int, string

Casting enums can get tricky in C# so we wanted to provide a few examples to help clarify the situation. Below we are using a simple enum to demonstrate how to cast an int to a enum, enum to an int. We will also go over how to check if an enum exists given an integer or string and how to...

Read more