Online Java Compiler By
JavaTpoint.com
public class PowExample1 { public static void main(String[] args) { double x = 5; double y = 4; //return 5<sup>4</sup> System.out.println(Math.pow(x, y)); } }
Output