powm in java code example Example: java pow // It prints 2^3 = 8 System.out.println(Math.pow(2,3)); // Output: 8