code: public static String strMapToStr(Map<String, String> map) {
  
          StringBuilder sb = new StringBuilder();
  
          if (map == null || map.isEmpty())
              return sb.toString();
  
          for (Entry<String, String> entry : map.entrySet()) {
  
              sb.append("< " + entry.getKey() + ", " + entry.getValue() + "> ");
          }
          return sb.toString();
  
      }
docs: Str map to str.
  
  @param map
  the map
  @return the string