NPE-safe String Comparisons, And More…
For the longest time I recall I’ve always been prone to do this when doing String comparisons* in Java… …And furthermore, I often find myself using the .equalsIgnoreCase() method. (Yes, considering that the requirements does not care about the letter case.) There is really nothing wrong with this way of checking if the string values…