Greetings Java Forums,

I have to create a method that calculates the mortgage monthly payment, using the following formula:

Loan Payment Formula

But I don't know how I'm supposed to write this in Java, specifically the power part.

How would I go about writing this formula in Java? Thanks again.