computing powers
this is a very stupid question but using java how can i compute something to the n?
[90 byte] By [
JavaBamfa] at [2007-11-26 16:09:52]

int x = 5;int n = 3;int xToTheNth = Math.pow(x, n);[url= http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Math.html#pow(double,%20double)]Math.pow(double, double)[/url]