how to see power of a number in java code example Example: how to find powers in java int n=Math.pow(N, P);