Online Java Compiler By
JavaTpoint.com
public class PowExample2 { public static void main(String[] args) { double x = 9.0; double y = -3; //return (9)
-3
System.out.println(Math.pow(x, y)); } }
Output