Browse Source

feat(CleanExtract): correct grammar

CON-1801-MARKDOWN-Remove-VirtualBox-restriction-from-projects-with-generic-.iso-VM-images
davhojt 10 months ago
parent
commit
fe1aed1a2d
No known key found for this signature in database
GPG Key ID: 29BFE853DB7E0677
  1. 4
      subjects/java/piscine/CleanExtract/README.md

4
subjects/java/piscine/CleanExtract/README.md

@ -4,9 +4,9 @@
Create a file `CleanExtract.java`.
You are given a single string **S** consisting of several substrings separated by the '|' character. Unfortunately, some of these substrings contain unnecessary characters that need to be removed in order to form a well-structured output string.
You are given a single string consisting of several substrings; each separated by a `|` character. Unfortunately, some of these substrings contain unnecessary characters that need to be removed in order to form a well-structured output string.
In particular, for each substring sub in **S**, you need to extract the portion of the string that is between the first '.' and the last '.' characters, and remove any leading or trailing white space from the extracted string. These extracted substrings should then be concatenated together using the ' ' character as a separator to form the output string.
For each substring, you need to extract the portion of the substring which is between the first and last `.`. The leading and trailing white spaces must be removed. The strings should then be joined together, using a space to separate each substring.
Write a function `CleanExtract` to solve this problem.

Loading…
Cancel
Save