Number formatting - Java : <p>I need to convert an integer so that a dash is inserted after two characters, for example 12-34-56. </p>

<p>The integer will be a randomly generated six digit number.</p>
