MCPcopy Create free account
hub / github.com/AdarshAddee/Hacktoberfest2022_for_Beginers / main

Method main

Java/QuickSort.java:37–50  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

35 }
36
37 public static void main(String[] args) {
38 Scanner sc = new Scanner(System.in).useDelimiter(",");
39 System.out.println("Hint: Enter Array -> 1,2,3,4,5,6 ");
40 System.out.print("Enter Array -> ");
41 String input = sc.nextLine();
42 String[] split = input.split(",");
43 int[] arr = new int[split.length];
44 for (int i = 0; i < split.length; i++) {
45 arr[i] = Integer.parseInt(split[i]);
46 }
47 quickSort(arr, 0, arr.length - 1);
48 System.out.println("Sorted Array -> " + Arrays.toString(arr));
49 sc.close();
50 }
51}

Callers

nothing calls this directly

Calls 1

quickSortMethod · 0.95

Tested by

no test coverage detected