My most favorite methods – Part 1 

This is my most favorite/commonly used/useful method. This method checks if the given string is valid or not.

/**
* Checks if the given string is valid or not.
*
* @param aString
* @return {@code true} if {@code aString} is not {@code null} and if it's
*         'trimmed' length is more than 0, else {@code false}
*/
static boolean isValidString(String aString)
{
   return ((null != aString) && (aString.trim().length() > 0));
}