import java.time.Instant;
import java.time.temporal.ChronoUnit;

/**
 * @author backtodeath
 * @email lirolaluis@gmail.com
 * @date 28.08.2016
 **/

class BubbleSort {
    static void sortWithBubbleSorting(int[] unsortedNumbers) {
        System.out.println("Starting bubble sorting for " + unsortedNumbers.length + " elements");
        Instant timeOfBeginning = Instant.now();

        for (int i = 0; i < unsortedNumbers.length; i++) {
            for (int j = 0; j < unsortedNumbers.length - 1; j++)
                if (unsortedNumbers[i] < unsortedNumbers[j]) {
                    int k = unsortedNumbers[i];
                    unsortedNumbers[i] = unsortedNumbers[j];
                    unsortedNumbers[j] = k;
                }
        }

        Instant timeOfEnding = Instant.now();

        System.out.println("sorting time for " + unsortedNumbers.length + " elements: " + ChronoUnit.MILLIS.between(timeOfBeginning, timeOfEnding) + " ms");
    }
}

@@ -205,30 +205,19 @@
 g(int%5B%5D 
-unsortedNumber
+int
 s) %7B%0A   
@@ -269,38 +269,27 @@
 ing for %22 + 
-unsortedNumber
+int
 s.length + %22
@@ -379,30 +379,19 @@
  0; i %3C 
-unsortedNumber
+int
 s.length
@@ -431,30 +431,19 @@
  0; j %3C 
-unsortedNumber
+int
 s.length
@@ -477,43 +477,21 @@
 if (
-unsortedNumbers%5Bi%5D %3C unsortedNumber
+ints%5Bi%5D %3C int
 s%5Bj%5D
@@ -522,30 +522,19 @@
 int k = 
-unsortedNumber
+int
 s%5Bi%5D;%0A  
@@ -555,43 +555,21 @@
     
-unsortedNumbers%5Bi%5D = unsortedNumber
+ints%5Bi%5D = int
 s%5Bj%5D
@@ -590,30 +590,19 @@
         
-unsortedNumber
+int
 s%5Bj%5D = k
@@ -732,22 +732,11 @@
 %22 + 
-unsortedNumber
+int
 s.le

clean up