title: Java Array Object
body: <p>OS Windows 7 64-bit</p>
  
  <p>I'm using a third party software to write scripts using jython. I'm able to create an array of component type "int" using "newInstance." I'm also able to retrieve elements at specific indices using "get." However, when I attempt to initialize array values using "setInt," I get an:</p>
  
  <blockquote>
    <p>IllegalArgumentException: Argument is not an array.</p>
  </blockquote>
  
  <p>Why does it recognize the array when retrieving using get, but not when initiating using setInt?  </p>
  
  <pre><code>    from java.lang.reflect import Array  
      arrayAsset = ['ExtRS', 'TPI', 'RRN', 'RRS', 'CCLN', 'CCLS', 'TPA', 'BAGN', 'BAGS', 'CP']  
      arrayCount = Array.newInstance(int, len(arrayAsset))  
      Array.get(arrayCount, 3)  
      Array.setInt(arrayCount, 3, 0)
  </code></pre>