Skip to content

Commit a7dc027

Browse files
author
alx
committed
Fix "Each variable declaration must be in its own statement"
1 parent c3f92d2 commit a7dc027

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ private static <T extends Comparable<? super T>> List<T> strandSort(List<T> list
6161
*/
6262
private static <T extends Comparable<? super T>> List<T> merge(List<T> left, List<T> right) {
6363
List<T> result = new ArrayList<>();
64-
int i = 0, j = 0;
64+
int i = 0;
65+
int j = 0;
6566
while (i < left.size() && j < right.size()) {
6667
if (left.get(i).compareTo(right.get(j)) <= 0) {
6768
result.add(left.get(i));

0 commit comments

Comments
 (0)