From d07e6680919d4bad06c7f687fa04895ec571face Mon Sep 17 00:00:00 2001 From: Hardik Kapadia Date: Tue, 30 Jun 2020 00:17:48 +0530 Subject: [PATCH] Fixed parameter error in SelectionSort --- Sorts/SelectionSort.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sorts/SelectionSort.java b/Sorts/SelectionSort.java index e6b7c8833..31b16c5bb 100644 --- a/Sorts/SelectionSort.java +++ b/Sorts/SelectionSort.java @@ -10,10 +10,12 @@ public class SelectionSort implements SortAlgorithm { /** * This method swaps the two elements in the array + * @param * @param arr, i, j The array for the swap and the indexes of the to-swap elements */ - public void swap(T[] arr, int i, int j) { + + public void swap(T[] arr, int i, int j) { T temp = arr[i]; arr[i] = arr[j]; arr[j] = temp;