MCPcopy Create free account
hub / github.com/SR-Sunny-Raj/Hacktoberfest2021-DSA / main

Method main

06. Sorting/countSort.java:18–37  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

16 }
17
18 public static void main(String[] args) throws java.lang.Exception {
19 Scanner sc = new Scanner(System.in);
20 int n = sc.nextInt();
21 int arr[] = new int[n];
22
23 // Inputing the Array
24 for (int i = 0; i < n; i++) {
25 arr[i] = sc.nextInt();
26 }
27 sc.close();
28
29 // Sorting
30 arr = code.bSort(arr, n); // Creating an object of the class
31
32 // Printing the Array
33 System.out.println("New Array: ");
34 for (int i : arr) {
35 System.out.print(i + " ");
36 }
37 }
38}

Callers

nothing calls this directly

Calls 2

bSortMethod · 0.80
printMethod · 0.45

Tested by

no test coverage detected