title: how to implement a void method as opposed to a method that returns something?
body: <p>I am just consfused on how to implement these two methods like how call them or use them? Since the first one is void how does it work? </p>
  
  <p>someone please use and an array and implement this for me or help me understand how the first void method works?</p>
  
  <pre><code>public static void insertionsort(int[] numbers) {
      for (int i = 0; i &lt; numbers.length; i++) {
           int copyNumber = numbers[i];
           int j = i;
           while (j &gt; 0 &amp;&amp; copyNumber &lt; numbers[j-1]) {
               numbers[j] = numbers[j-1];
               j--;
           }
           numbers[j] = copyNumber;
      }
  }
  
  public int[] InsertionSort(int[] data){
      int len = data.length;
      int key = 0;
      int i = 0;
      for(int j = 1;j&lt;len;j++){
          key = data[j];
          i = j-1;
          while(i&gt;=0 &amp;&amp; data[i]&gt;key){
              data[i+1] = data[i];
              i = i-1;
              data[i+1]=key;
          }
      }
      return data;
  }
  </code></pre>