title: Inserting into array in order
body: <p>In simple terms, part of the project I'm working on has me taking an array that is descending in order and adding an element so that it the array remains in order. Initially I thought it would be simple just to add the element into the array and then sort after implementing Comparable, but then found out that sorting algorithms of any kind are prohibited; Collections as well. Kind of out of ideas on how to proceed from here, any hints?</p>
  
  <p>EX: </p>
  
  <pre><code>int[] x = [ 7, 6, 6, 5, 3, 2, 1 ] 
  
  add 4
  
  [ 7, 6, 6, 5, 4, 3, 2, 1 ]
  </code></pre>
  
  <p>Clarification to say that I am not completely out of ideas, just efficient ones. What I am able to reason so far:</p>
  
  <pre><code>int[] bigger = new int[x.length];
  int add = 4;
  for (int i = 0; i &lt; bigger.length; i++){
       if ( add &gt; x[i] &amp;&amp; add &lt; x[i+1]){
           bigger[i] = x[i];
           bigger[i+1] = add;
       else{
           bigger[i] = x[i];
       }
  }
  </code></pre>
  
  <p>I know it will throw an IndexOutOfBounds error for x, but I feel there must be a simpler method than this, right?</p>