title: How can I set arrays in Java?
body: <p>Here is my code:</p>
  
  <pre><code>int setElement(int[]array) {
    int key;
    for (int i=0; i&lt;array.length; i++) {
  
    }
    return key;
  }
  </code></pre>
  
  <p>Something is wrong here.</p>