Possible loss of precision
<p>I am trying to run this code in java and getting following error, required int found double.</p>

<pre><code>public class UseMath{
public static void main(String[]args){
  int x = Math.pow (2,4);
System.out.println ("2 to the power of 4 is" + x);

 }
}
</code></pre>

<p>Please help....</p>
