MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / printArray

Method printArray

Java/Array/BubbleSort.java:47–53  ·  view source on GitHub ↗
(int [] arr)

Source from the content-addressed store, hash-verified

45public class BubbleSort {
46
47 public static void printArray(int [] arr) {
48 System.out.println("The sorted array is: ");
49 int n = arr.length;
50 for (int i = 0; i < n; i++) {
51 System.out.print(arr[i] + " ");
52 }
53 }
54
55 public static void bubbleSort(int [] arr) {
56 int n = arr.length;

Callers 1

mainMethod · 0.95

Calls 1

printMethod · 0.45

Tested by

no test coverage detected