Browse Source

fix(java-piscine): fix java piscine typos in subjects and folders names (#2078)

* fix(java-piscine): fix java piscine typos in subjects and folders names

* fix(java-piscine): fix java piscine grammar related typos

* fix(java-piscine): fix java piscine Grammar related typos
pull/2084/head
zanninso 1 year ago committed by GitHub
parent
commit
feebbfeef1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      subjects/java/piscine/FloatOperations/README.md
  2. 20
      subjects/java/piscine/IntOperations/README.md
  3. 14
      subjects/java/piscine/ListEquals/README.md
  4. 14
      subjects/java/piscine/MapEquals/README.md
  5. 14
      subjects/java/piscine/SetEquals/README.md
  6. 2
      subjects/java/piscine/SetOperations/README.md
  7. 12
      subjects/java/piscine/StringContains/README.md

12
subjects/java/piscine/FloatOperations/README.md

@ -2,7 +2,7 @@
### Instructions
Create a file `FloatOperation.java`.
Create a file `FloatOperations.java`.
Write a function `divideTwoFloats` that returns the float division of two floats passed as parameter.
Write a function `addTwoFloats` that returns the sum of two floats passed as parameter.
@ -10,7 +10,7 @@ Write a function `addTwoFloats` that returns the sum of two floats passed as par
### Expected Functions
```java
public class FloatOperation {
public class FloatOperations {
public static float addTwoFloats(float a, float b) {
// your code here
}
@ -28,12 +28,12 @@ Here is a possible ExerciseRunner.java to test your function :
public class ExerciseRunner {
public static void main(String[] args) {
System.out.println("Add");
System.out.println(FloatOperation.addTwoFloats(1.0f, 2.5f));
System.out.println(FloatOperation.addTwoFloats(15.18f, 68.28347f));
System.out.println(FloatOperations.addTwoFloats(1.0f, 2.5f));
System.out.println(FloatOperations.addTwoFloats(15.18f, 68.28347f));
System.out.println("Divide");
System.out.println(FloatOperation.divideTwoFloats(7.0f, 2.0f));
System.out.println(FloatOperation.divideTwoFloats(5.6f, 6.9f));
System.out.println(FloatOperations.divideTwoFloats(7.0f, 2.0f));
System.out.println(FloatOperations.divideTwoFloats(5.6f, 6.9f));
}
}
```

20
subjects/java/piscine/IntOperations/README.md

@ -2,7 +2,7 @@
### Instructions
Create a file `IntOperation.java`.
Create a file `IntOperations.java`.
Write a function `addTwoIntegers` that returns the sum of two integers passed as parameter.
Write a function `substractTwoIntegers` that returns subtraction of two integers passed as parameter.
@ -12,7 +12,7 @@ Write a function `divideTwoIntegers` that returns the Euclidian division of two
### Expected Functions
```java
public class IntOperation {
public class IntOperations {
public static int addTwoIntegers(int a, int b) {
// your code here
}
@ -36,20 +36,20 @@ Here is a possible ExerciseRunner.java to test your function :
public class ExerciseRunner {
public static void main(String[] args) {
System.out.println("Add");
System.out.println(IntOperation.addTwoIntegers(1, 2));
System.out.println(IntOperation.addTwoIntegers(15, 68));
System.out.println(IntOperations.addTwoIntegers(1, 2));
System.out.println(IntOperations.addTwoIntegers(15, 68));
System.out.println("Subtract");
System.out.println(IntOperation.subtractTwoIntegers(4, 1));
System.out.println(IntOperation.subtractTwoIntegers(10, 23));
System.out.println(IntOperations.subtractTwoIntegers(4, 1));
System.out.println(IntOperations.subtractTwoIntegers(10, 23));
System.out.println("Multiply");
System.out.println(IntOperation.multiplyTwoIntegers(3, 6));
System.out.println(IntOperation.multiplyTwoIntegers(12, 11));
System.out.println(IntOperations.multiplyTwoIntegers(3, 6));
System.out.println(IntOperations.multiplyTwoIntegers(12, 11));
System.out.println("Divide");
System.out.println(IntOperation.divideTwoIntegers(8, 2));
System.out.println(IntOperation.divideTwoIntegers(13, 4));
System.out.println(IntOperations.divideTwoIntegers(8, 2));
System.out.println(IntOperations.divideTwoIntegers(13, 4));
}
}
```

14
subjects/java/piscine/ListEqual/README.md → subjects/java/piscine/ListEquals/README.md

@ -1,18 +1,18 @@
## ListEqual
## ListEquals
### Instructions
Create a file `ListEqual.java`.
Create a file `ListEquals.java`.
Write a function `areListEquals` that returns true if the lists as parameters are equals. Returns false otherwise.
Write a function `areListsEqual` that returns true if the lists as parameters are equals. Returns false otherwise.
### Expected Functions
```java
import java.util.List;
public class ListEqual {
public static boolean areListEquals(List<String> list1, List<String> list2) {
public class ListEquals {
public static boolean areListsEqual(List<String> list1, List<String> list2) {
// your code here
}
}
@ -27,8 +27,8 @@ import java.util.List;
public class ExerciseRunner {
public static void main(String[] args) {
System.out.println(ListEqual.areListEquals(List.of("Alice", "Bob", "Charly", "Emily"), List.of("Alice", "Bob", "Charly", "Emily")));
System.out.println(ListEqual.areListEquals(List.of("Alice", "Bob", "Charly", "Emily"), List.of("Alice", "Bob", "Emily", "Charly")));
System.out.println(ListEquals.areListsEqual(List.of("Alice", "Bob", "Charly", "Emily"), List.of("Alice", "Bob", "Charly", "Emily")));
System.out.println(ListEquals.areListsEqual(List.of("Alice", "Bob", "Charly", "Emily"), List.of("Alice", "Bob", "Emily", "Charly")));
}
}
```

14
subjects/java/piscine/MapEqual/README.md → subjects/java/piscine/MapEquals/README.md

@ -1,18 +1,18 @@
## MapEqual
## MapEquals
### Instructions
Create a file `MapEqual.java`.
Create a file `MapEquals.java`.
Write a function `areMapEquals` that returns `true` if the maps as parameters are equal. Returns `false` otherwise.
Write a function `areMapsEqual` that returns `true` if the maps as parameters are equal. Returns `false` otherwise.
### Expected Functions
```java
import java.util.Map;
public class MapEqual {
public static boolean areMapEquals(Map<String, Integer> map1, Map<String, Integer> map2) {
public class MapEquals {
public static boolean areMapsEqual(Map<String, Integer> map1, Map<String, Integer> map2) {
// your code here
}
}
@ -29,11 +29,11 @@ public class ExerciseRunner {
public static void main(String[] args) {
Map<String, Integer> map1 = Map.of("Alice", 1, "Bob", 2, "Charly", 3);
Map<String, Integer> map2 = Map.of("Alice", 1, "Bob", 2, "Charly", 3);
System.out.println(MapEqual.areMapEquals(map1, map2)); // Expected Output: true
System.out.println(MapEquals.areMapsEqual(map1, map2)); // Expected Output: true
Map<String, Integer> map3 = Map.of("Alice", 1, "Bob", 2, "Charly", 3);
Map<String, Integer> map4 = Map.of("Alice", 1, "Bob", 2, "Emily", 3);
System.out.println(MapEqual.areMapEquals(map3, map4)); // Expected Output: false
System.out.println(MapEquals.areMapsEqual(map3, map4)); // Expected Output: false
}
}
```

14
subjects/java/piscine/SetEqual/README.md → subjects/java/piscine/SetEquals/README.md

@ -1,18 +1,18 @@
## SetEqual
## SetEquals
### Instructions
Create a file `SetEqual.java`.
Create a file `SetEquals.java`.
Write a function `areSetEquals` that returns `true` if the sets as parameters are equal. Returns `false` otherwise.
Write a function `areSetsEqual` that returns `true` if the sets as parameters are equal. Returns `false` otherwise.
### Expected Functions
```java
import java.util.Set;
public class SetEqual {
public static boolean areSetEquals(Set<String> set1, Set<String> set2) {
public class SetEquals {
public static boolean areSetsEqual(Set<String> set1, Set<String> set2) {
// your code here
}
}
@ -40,7 +40,7 @@ public class ExerciseRunner {
set2.add("Charly");
set2.add("Alice");
System.out.println(SetEqual.areSetEquals(set1, set2)); // Expected Output: true
System.out.println(SetEquals.areSetsEqual(set1, set2)); // Expected Output: true
Set<String> set3 = new HashSet<>();
set3.add("Alice");
@ -52,7 +52,7 @@ public class ExerciseRunner {
set4.add("Bob");
set4.add("Emily");
System.out.println(SetEqual.areSetEquals(set3, set4)); // Expected Output: false
System.out.println(SetEquals.areSetsEqual(set3, set4)); // Expected Output: false
}
}
```

2
subjects/java/piscine/SetOperations/README.md

@ -1,4 +1,4 @@
## SetContains
## SetOperations
### Instructions

12
subjects/java/piscine/StringContain/README.md → subjects/java/piscine/StringContains/README.md

@ -1,15 +1,15 @@
## StringContain
## StringContains
### Instructions
Create a file `StringContain.java`.
Create a file `StringContains.java`.
Write a function `isStringContainedIn` that returns true if the first String as parameter is contained in the second String as parameter.
### Expected Functions
```java
public class StringContain {
public class StringContains {
public static boolean isStringContainedIn(String subString, String s) {
// your code here
}
@ -23,9 +23,9 @@ Here is a possible ExerciseRunner.java to test your function :
```java
public class ExerciseRunner {
public static void main(String[] args) {
System.out.println(StringContain.isStringContainedIn("Hell", "Highway to Hell"));
System.out.println(StringContain.isStringContainedIn("Hell", "Hello World !"));
System.out.println(StringContain.isStringContainedIn("Bonjour", "hello World !"));
System.out.println(StringContains.isStringContainedIn("Hell", "Highway to Hell"));
System.out.println(StringContains.isStringContainedIn("Hell", "Hello World !"));
System.out.println(StringContains.isStringContainedIn("Bonjour", "hello World !"));
}
}
```
Loading…
Cancel
Save