title: Array even & odd sorting
body: <p>I have an array where I have some numbers. Now I want to sort even numbers in a separate array and odd numbers in a separate. Is there any API to do that? I tried like this</p>
  <pre><code>int[] array_sort={5,12,3,21,8,7,19,102,201};
  int [] even_sort;
  int i;
  for(i=0;i&lt;8;i++)
  {
  
  if(array_sort[i]%2==0)
  {
       even_sort=Arrays.sort(array_sort[i]);//error in sort
          
  System.out.println(even_sort);
  }
  }
  </code></pre>