ReusableCodes Template Template class is a util class that converts the characters of a particular pattern in the string to the corresponding values in the map.