public class BubbleSort {

    public static void main(String[] args) {
        
        int temp = 0;
        boolean flag = true;
        
        //populate array
        int[] nums = new int[10];
        for (int i = 0; i < nums.length; i++) {
            nums[i] = ((int)(Math.random() * 20));
            System.out.print("[" + nums[i] + "]");           
        }
        
        System.out.println("");
            
        //Apply Bubble Sort
        while(flag) {
            flag = false;
            for (int i = 0; i < (nums.length-1); i++) {
                if (nums[i+1] < nums[i]) {
                    temp = nums[i+1];
                    nums[i+1] = nums[i];
                    nums[i] = temp;
                    flag = true;
                }            
            }   
        } 
        
        //print results
        System.out.println("");
                
        for (int i = 0; i < nums.length; i++) {
            System.out.print("[" + nums[i] + "]");
        }
        
        
        //bubble sort
        
    }
    
}

@@ -828,64 +828,20 @@
 int 
-results%0A        System.out.println(%22%22);%0A                
+sorted array
 %0A   
@@ -955,58 +955,9 @@
     
-   %0A        %0A        //bubble sort%0A        %0A    %7D%0A
+%7D
     

Update bubble.java