Skip to content

Commit

Permalink
fix(java-piscine): change the name of the solution class form Sort to…
Browse files Browse the repository at this point in the history
… SortList
  • Loading branch information
zanninso committed Jul 12, 2023
1 parent feebbfe commit a0035c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions subjects/java/piscine/SortList/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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<Integer> sort(List<Integer> list) {
// your code here
Expand All @@ -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());
}
}
```
Expand Down

1 comment on commit a0035c9

@akhossanX
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good

Please sign in to comment.