Browse Source

fix: change StringContain -> StringReplace (#2095)

pull/2096/head
zanninso 1 year ago committed by GitHub
parent
commit
79c9245fd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      subjects/java/piscine/StringReplace/README.md

6
subjects/java/piscine/StringReplace/README.md

@ -23,9 +23,9 @@ Here is a possible ExerciseRunner.java to test your function :
```java ```java
public class ExerciseRunner { public class ExerciseRunner {
public static void main(String[] args) { public static void main(String[] args) {
System.out.println(StringContain.replace("javatpoint is a very good website", 'a', 'e')); System.out.println(StringReplace.replace("javatpoint is a very good website", 'a', 'e'));
System.out.println(StringContain.replace("my name is khan my name is java", "is","was")); System.out.println(StringReplace.replace("my name is khan my name is java", "is","was"));
System.out.println(StringContain.replace("hey i'am java", "I'am","was")); System.out.println(StringReplace.replace("hey i'am java", "I'am","was"));
} }
} }
``` ```

Loading…
Cancel
Save