Java DecimalFormat - Using Integers
<p>I have a currency in pennies, as an integer (ex: <code>1234</code>). I need the output to be: <code>$12.34</code>. We are not allowed to use doubles or floats on this assignment, only Integers.</p>

<p>Here is what I have:</p>

<pre><code>totalChange = 1234;
DecimalFormat ourFormat = new DecimalFormat("$#,###.00");
String totalString = ourFormat.format(totalChange);
System.out.println("Your change of " + totalString + " is as follows:");
</code></pre>

<p>I would assume that the DecimalFormat would go from right to left, assigning <code>34</code> to be after the decimal point, and the <code>12</code> should be placed before.</p>

<p>I'm getting an output of <code>Your change of $1234.00 is as follows:</code></p>
