MCPcopy Create free account
hub / github.com/LFYSec/MScan / bubbleSort

Method bubbleSort

src/test/resources/sideeffect/BubbleSort.java:8–18  ·  view source on GitHub ↗
(int[] array, int len)

Source from the content-addressed store, hash-verified

6 }
7
8 public static void bubbleSort(int[] array, int len) {
9 for (int i=0; i < len; i++) {
10 for (int j=i+1; j < len; j++) {
11 if (array[i] > array[j]) {
12 int tmp = array[i];
13 array[i] = array[j];
14 array[j] = tmp;
15 }
16 }
17 }
18 }
19
20}

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected