title: My second System.out.print is not printing but is compiling fine
body: <p>I am using this class as part of another program and I'm wondering why the second <code>System.out.print</code> doesn't print anything. I'm doing the same with other algorithms and it works just fine. It is still inside the method so I am unsure as to why it will not print</p>
  
  <pre><code>public class EnhancedBubbleSort
  {
     int temp = 0;
     boolean sorted = false;
     long counter1 = 0, counter2 = 0;
  
     public void sort(int[] numbers)
     {  
        System.out.print("Before Enhanced Bubble Sort: ");
        for(int a: numbers)
           System.out.print(a + ", ");
  
        int lastSwap = numbers.length-1;
        for(int i=1; i&lt;numbers.length; i++) 
        {
           boolean is_sorted = true;
           int currentSwap = -1;
  
           for(int j=0; j &lt; lastSwap; j++) 
           {
              counter1++;
              if(numbers[j] &gt; numbers[j+1]) 
              {
                 counter2++;
                 temp = numbers[j];
                 numbers[j] = numbers[j+1];
                 numbers[j+1] = temp;
                 is_sorted = false;
                 currentSwap = j;
              }
           }  
           if(is_sorted) 
              return;
           lastSwap = currentSwap;
        }
  
        System.out.print("\nAfter Enhanced Bubble Sort: ");
        for(int a: numbers)
           System.out.print(a + ", "); 
     }
  }
  </code></pre>