MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / printArr

Method printArr

Programs/HeapSort.java:48–54  ·  view source on GitHub ↗
(int arr[])

Source from the content-addressed store, hash-verified

46
47 /* A utility function to print array of size n */
48 static void printArr(int arr[]) {
49 int n = arr.length;
50 for (int i = 0; i < n; ++i){
51 System.out.print(arr[i] + " ");
52 }
53 System.out.println();
54 }
55
56 public static void main(String[] args) {
57 int arr[] = { 4, 23, 6, 78, 1, 54, 231, 9, 12 };

Callers 1

mainMethod · 0.95

Calls 1

printMethod · 0.80

Tested by

no test coverage detected