title: Replace string with dynamic value
body: <p>I have pattern like '<code>{YY}-{MM}-{SEQNO}</code>'. I want to replace above string by dynamic value.</p>
  
  <p>For example </p>
  
  <pre><code>{YY} with - 17 
  {MM} with - 06
  {SEQNO} WITH - 0001
  </code></pre>
  
  <p>What is the way to that in java?    </p>