All pastes #464082 Raw Edit

Bubble

public java v1 · immutable
#464082 ·published 2007-04-29 09:52 UTC
rendered paste body
 public static final int[] Bubblesort(int[] pole) {            int pom;              for (int i = 2; i < pole.length; i++) {                for (int j = n; n > i; n--) {If (pole[j-1]>pole[j]) {pom=a[j-1];                                                                      a[j-1]=a[j];                                                                      a[j]=pom;};                };                                       }            return pole;        }           }