The exercise style is European. The payoff of these options is: $$ \begin{align*} c &= \max(S - K, 0)^i\\ p &= \max(K - S, 0)^i \end{align*} $$ where $K$ is the strike, $i$ is the power and $S$ is the spot.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.