title: Convert int array to int
body: <p>I have a class in my Application where int values are stored:</p>
  
  <p>Characters.class:</p>
  
  <pre><code>public int charPunch(int q) {
  
      int[] charPunch = {
          15, 
          10, 
          20, 
          25, 
          20, 
          20, 
          15, 
          20, 
          20, 
          25
      };
      return charPunch(q);
  }
  </code></pre>
  
  <p>The <code>q</code> value is decided by user character selection. I'm trying to understand the code and so just posted the code as it currently is.</p>
  
  <p>In the same class file I have an array of Strings which I can then convert (in another .class file) with .toString();</p>
  
  <p>Game.class:</p>
  
  <pre><code>oneName = Ch.charName(q).toString();
  </code></pre>
  
  <p>This gives playerOne's <code>oneName</code> the array value and converts the String array result to a single String and works!</p>
  
  <p>My question is: Am I able to do the exact same thing to an array of int values?</p>
  
  <ul>
  <li><p>Would changing the int array to a String array, converting the String array to a single String and then the String to an int be terrible programming but my best solution?</p>
  
  <pre><code>String onePunch = charPunch(q).toString();
  int charPunchInt = Integer.parseInt(charPunch);
  </code></pre></li>
  </ul>
  
  <p>I currently get <code>StackOverflowError</code> on the Characters.class array's return line until the process gives up.</p>