title: Returning the biggest three digit number
body: <p>I have to write the following method: 
  it will return the biggest 3 digit number made out of 
  d1,d2 and d3. d1,d2, and d3 are all single digits. </p>
  
  <p>For example threeDigit(3,2,9) will return 932.</p>
  
  <p>Here's what I've written so far:</p>
  
  <pre><code>public static int threeDigit(int d1, int d2, int d3){
      if(d1&gt;d2 &amp;&amp; d1&gt;d3 &amp;&amp; d2&gt;3)
          return d1+d2+d3;
      if(d1&gt;d2 &amp;&amp; d1&gt;d3 &amp;&amp; d3&gt;d2)
          return d1+d3+d3;
      if(d2&gt;d1 &amp;&amp; d2&gt;d3 &amp;&amp; d1&gt;d3)
          return d2+d1+d3;
      if(d2&gt;d1 &amp;&amp; d2&gt;d3 &amp;&amp; d3&gt;d2)
          return d2+d3+d1;
      if(d3&gt;d1 &amp;&amp; d3&gt;d2 &amp;&amp; d1&gt;d2)
          return d3+d1+d2;
      return d3+d2+d1;
  }
  </code></pre>
  
  <p>But it just returns the sum of the three numbers. How can I get it to return back the numbers themselves?</p>