title: Adding integers to an int array
body: <p>I am trying to add integers into an int array, but Eclipse says:</p>
  
  <blockquote>
    <p>cannot invoke add(int) on the array type int[]</p>
  </blockquote>
  
  <p>Which is completely illogical to me. I also tried  <code>addElement()</code> and <code>addInt()</code>, however they don't work either.</p>
  
  <pre><code>public static void main(String[] args) {
      int[] num = new int[args.length];
      for (String s : args){
          int neki = Integer.parseInt(s);
          num.add(neki);
  
  }
  </code></pre>