code: public static String camelCaseToHyphenCase(String s) {
  
          StringBuilder parsedString = new StringBuilder(s.substring(0, 1).toLowerCase());
  
          for (char c : s.substring(1).toCharArray()) {
  
              if (Character.isUpperCase(c)) {
                  parsedString.append("-").append(Character.toLowerCase(c));
              } else {
                  parsedString.append(c);
              }
          }
  
          return parsedString.toString();
      }
docs: Parse upper camel case to lower hyphen case.
  
  @param s string in upper camel case format
  @return string in lower hyphen case format