title: Wrong answer when multiplying variables
body: <p>I'm trying to multiply two variables. One is an int and the other is inside a char array.</p>
  
  <p>My code is this</p>
  
  <pre><code>int biggestProduct = 1;
  int currProduct = 1;
  char[] array = num.toCharArray();
  
  for (int x = 0; x &lt; array.length; x++) {
      if (x &lt; 5) {
          System.out.println(currProduct + " * " + array[x] + " = " + currProduct * array[x]);
          currProduct *= array[x];
      }
  }
  
  return biggestProduct;
  </code></pre>
  
  <p>The problem is with the <code>currProduct*= array[x]</code></p>
  
  <p>This is my output when I print it out:</p>
  
  <pre><code>1 * 7 = 55
  55 * 3 = 2805
  2805 * 1 = 137445
  137445 * 6 = 7422030
  7422030 * 7 = 408211650
  </code></pre>
  
  <p>Why isn't it multiplying correctly?</p>