MCPcopy Create free account
hub / github.com/TheAlgorithms/Java / main

Method main

src/main/java/com/thealgorithms/sorts/BogoSort.java:40–53  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

38
39 // Driver Program
40 public static void main(String[] args) {
41 // Integer Input
42 Integer[] integers = {4, 23, 6, 78, 1, 54, 231, 9, 12};
43
44 BogoSort bogoSort = new BogoSort();
45
46 // print a sorted array
47 SortUtils.print(bogoSort.sort(integers));
48
49 // String Input
50 String[] strings = {"c", "a", "e", "b", "d"};
51
52 SortUtils.print(bogoSort.sort(strings));
53 }
54}

Callers

nothing calls this directly

Calls 2

printMethod · 0.95
sortMethod · 0.95

Tested by

no test coverage detected