Hey guys, im pretty new to programming, and I just cant figure out how to put this formula into java.

I just cant figure this bastard out, any ideas?

M= p[i(1+i)n ] / [(1+i)n -1]

btw n,...