package org.z1key.projects.sort;

public class Bubble {

    public static void sort(int[] array) {
        int length = array.length;
        for (int i = 0; i < array.length; i++) {
            boolean mod = false;
            for (int k = 0; k < length - 1; k++) {
                int memory;
                if (array[k] > array[k + 1]) {
                    memory = array[k];
                    array[k] = array[k + 1];
                    array[k + 1] = memory;
                    mod = true;
                }
            }
            if (!mod) break;
            length--;
        }
    }
}

@@ -197,18 +197,25 @@
 boolean 
-mo
+isModifie
 d = fals
@@ -490,18 +490,25 @@
         
-mo
+isModifie
 d = true
@@ -558,18 +558,25 @@
    if (!
-mo
+isModifie
 d) break

rename mod -> isModified