From 52f0e4c878db4675e6989c0cd90c4610c8048972 Mon Sep 17 00:00:00 2001 From: zanninso Date: Wed, 12 Jul 2023 18:29:08 +0100 Subject: [PATCH] fix(java-piscine): change the name of the solution class form Sort to SortList --- subjects/java/piscine/SortList/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/subjects/java/piscine/SortList/README.md b/subjects/java/piscine/SortList/README.md index 22517e017..4ded5712b 100644 --- a/subjects/java/piscine/SortList/README.md +++ b/subjects/java/piscine/SortList/README.md @@ -2,7 +2,7 @@ ### Instructions -Create a file `Sort.java`. +Create a file `SortList.java`. Write a function `sort` that returns the ascending sorted list as parameter. Write a function `sortReverse` that returns the descending sorted list as parameter. @@ -12,7 +12,7 @@ Write a function `sortReverse` that returns the descending sorted list as parame ```java import java.util.List; -public class Sort { +public class SortList { public static List sort(List list) { // your code here @@ -34,8 +34,8 @@ import java.util.List; public class ExerciseRunner { public static void main(String[] args) { - System.out.println(Sort.sort(List.of(15, 1, 14, 18, 14, 98, 54, -1, 12)).toString()); - System.out.println(Sort.sortReverse(List.of(15, 1, 14, 18, 14, 98, 54, -1, 12)).toString()); + System.out.println(SortList.sort(List.of(15, 1, 14, 18, 14, 98, 54, -1, 12)).toString()); + System.out.println(SortList.sortReverse(List.of(15, 1, 14, 18, 14, 98, 54, -1, 12)).toString()); } } ```