docs: fix typo and messing imports

This commit is contained in:
zanninso 2024-07-18 03:37:53 +01:00 committed by zanninso
parent a9ca2c3d08
commit 6895ee71a0
2 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,4 @@
import java.util.List;
import java.util.Arrays;
public class ExerciseRunner {
@ -19,4 +20,4 @@ public class ExerciseRunner {
List<String> sensitiveKeys3 = Arrays.asList("username", "password");
System.out.println("Protected Config 3:\n" + protector.hideSensitiveData(configFile3, sensitiveKeys3));
}
}
}

View File

@ -2,7 +2,7 @@
### Instructions
Create a class `ConfigProtector` that provides a method to hide sensitive data in a configuration file using regex. The method should replace sensitive values with asterisks. The configuration file will be provided as a string, and the keys for the sensitive data will be given in a list.
Create a class `ConfigProtector` that provides a method to hide sensitive data in a configuration file using `Regex`. The method should replace sensitive values with asterisks. The configuration file will be provided as a string, and the keys for the sensitive data will be given in a list.
### Expected Class
@ -21,6 +21,7 @@ public class ConfigProtector {
Here is a possible `ExerciseRunner.java` to test your class:
```java
import java.util.List;
import java.util.Arrays;
public class ExerciseRunner {