title: Cannot Print Void Method from Main
body: <p>I made a main method, insertion sort and want it to print out properly in my tester class.  I know that it cannot print because its a void method using arrays and I need it to be a  string to print, I'm just not sure what to edit in my method or my print line to make it feasible.</p>
  
  <p>METHOD</p>
  
  <pre><code>public static void insertionSort(String[] inputList) 
          {
              OrderStrings c = new OrderStrings();
  
              for (int i = 1; i &lt; inputList.length; i++)
                  {
                      String index = inputList[i];
                      int j = i;
                      while ( j &gt; 0 &amp;&amp; c.compare((sort(inputList[j])), sort(inputList[j-1])) &gt; 0)
                          {
                              inputList[j] = inputList[j-1];
                              j--;
                          }
                      inputList[j] = index;
  
  
                  }
          }
  </code></pre>
  
  <p>TESTER</p>
  
  <pre><code>@Test
      public void testInsertionSort()
          {
              AnagramUtil insertionTest = new AnagramUtil();
  
  
              String[] test2 = { "ComputerScience" };
  
              System.out.print("Testing Insertion Sort");
              System.out.println();
              System.out.println(insertionTest.insertionSort("sorted" + test2);
  //the above is the line that will not print
  //it says "- The method insertionSort(String[]) in the type AnagramUtil is not applicable for the arguments(String)"
          }
  </code></pre>