Java: Base to Power of 'N' Problem in Java
`Problem Statement:     
Given base and n that are both 1 or more, compute the value of base to the n power, so powerN(3, 2) is 9 (3 squared). `

`Examples are as below        `     
`powerN(3, 1) → 3       `     
`powerN(3, 2) → 9     `       
`powerN(3, 3) → 27     ` 

The function signature is `public int powerN(int base, int n)`

Im finding it to difficult to solve this?
      
Java: Base to Power of 'N' Problem in Java
===

`Problem Statement:     
Given base and n that are both 1 or more, compute the value of base to the n power, so powerN(3, 2) is 9 (3 squared). `

`Examples are as below        `     
`powerN(3, 1) → 3       `     
`powerN(3, 2) → 9     `       
`powerN(3, 3) → 27     ` 

The function signature is `public int powerN(int base, int n)`

Im finding it to difficult to solve this?
      