How To Apply Power In Java