code: boolean isAllUppercase(final String str) {
      for (int i = 0; i < str.length(); i++) {
        char c = str.charAt(i);
        if (Character.isLetter(c) && Character.isLowerCase(c)) {
          return false;
        }
      }
      return true;
    }
docs: Returns true if <code>str</code> is made up of all-uppercase characters
  (ignoring characters for which no upper-/lowercase distinction exists).