How to multiply 10 to an "Integer" object in Java?
<p>How do I multiply 10 to an <code>Integer</code> object and get back the <code>Integer</code> object?</p>

<p>I am looking for the neatest way of doing this.</p>

<p>I would probably do it this way:
Get int from <code>Integer</code> object, multiply it with the other int and create another Integer object with this int value.</p>

<p>Code will be something like ... </p>

<pre><code>integerObj = new Integer(integerObj.intValue() * 10);
</code></pre>

<p>But, I saw a code where the author is doing it this way: Get the <code>String</code> from the <code>Integer</code> object, concatenate "0" at the end and then get <code>Integer</code> object back by using <code>Integer.parseInt</code></p>

<p>The code is something like this:</p>

<pre><code>String s = integerObj + "0";
integerObj = Integer.parseInt(s);
</code></pre>

<p>Is there any merit in doing it either way?</p>

<p>And what would be the most efficient/neatest way in general and in this case?</p>
