Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(java-piscine): change the name of the solution class form Sort to… #2084

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading