How to override = symbol while converting HashMap to String using toString method?
<p>Below is part of code where map is initialized as:<br>
<code>Map&lt;Integer,Integer&gt; map = new HashMap&lt;&gt;();</code><br>
and the line which I want to modify the output is<br></p>

<p><code>System.out.println("Price and items "+map.toString());</code>
<br>where the output presently is
<br> <strong>{100=10,200=5}</strong></p>

<p>I want to display<br>
<strong>{100:10,200:5}</strong></p>