title: Java: Base to Power of 'N' Problem in Java
body: <p><strong>Problem Statement:</strong> </p>
  
  <p>Given base and n that are both 1 or more, compute the value of base to the n power, so <code>powerN(3, 2)</code> is 9 (3 squared). </p>
  
  <p><strong>Example</strong>        </p>
  
  <pre><code>powerN(3, 1) → 3
  powerN(3, 2) → 9
  powerN(3, 3) → 27
  </code></pre>
  
  <p>The function signature is <code>public int powerN(int base, int n)</code></p>
  
  <p>I'm finding it to difficult to solve this? Help me out.<br>
  <strong>EDIT:</strong> I need a solution which does not uses built in mathematical formulas and recursion   </p>