evaluate a pow b in java without builtin method code example Example: how to find powers in java int n=Math.pow(N, P);