Skip to content

Commit bab5d8f

Browse files
committed
style: remove main method
1 parent b3de373 commit bab5d8f

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/main/java/com/thealgorithms/sorts/CircleSort.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,4 @@ private <T extends Comparable<T>> Boolean doSort(T[] array, int left, int right)
5353

5454
return swapped || leftHalf || rightHalf;
5555
}
56-
57-
/* Driver code*/
58-
public static void main(String[] args) {
59-
CircleSort CSort = new CircleSort();
60-
61-
Integer[] arr = {4, 23, 6, 78, 1, 54, 231, 9, 12};
62-
CSort.sort(arr);
63-
for (int i = 0; i < arr.length - 1; ++i) {
64-
assert arr[i] <= arr[i + 1];
65-
}
66-
67-
String[] stringArray = {"c", "a", "e", "b", "d"};
68-
CSort.sort(stringArray);
69-
for (int i = 0; i < stringArray.length - 1; ++i) {
70-
assert arr[i].compareTo(arr[i + 1]) <= 0;
71-
}
72-
}
7356
}

0 commit comments

Comments
 (0)