compare RSS

Follow The Programmer Blog RSS feed to stay up to date with the latest programming tutorials regarding anything compare. If you're looking to upgrade your software developer shirt collection we offer some pretty cool programmer shirts. For more of the latest developer news and programming tutorials visit The Programmer Blog. View all programming tutorials tagged with compare below:


compare, String

Comparing strings in Java

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