Making the output of an operation to display 2 decimal points
<p>Here's my current code:</p>

<p>import java.util.Scanner;</p>

<pre><code>public class Addition
{
    // main method begins execution of Java application
    public static void main( String args[] )
    {
       // create Scanner to obtain input from command window
       Scanner input = new Scanner( System.in );            

       int area;
       int number1;
       int number2;


       System.out.print( "Input base value =  " ); // prompt
       number1 = input.nextInt(); // read first number from user

       System.out.print( "Input height value = " ); // prompt
       number2 = input.nextInt(); // read second number from user

       area = 1/2*(number1*number2); // add numbers
       System.out.printf( "The Area of the right triangle is %d\n", area ); // display sum

    } // end method main

 } // end class Addition
</code></pre>

<p>I would like to make it display the decimal point when i input 5 as the first and second number. i tried replacing <strong>int area</strong> with <strong>double area</strong> but doesn't work..</p>
