-
Notifications
You must be signed in to change notification settings - Fork 87
#285 Исправлена ошибка в проверяющем тесте в уроке Неизменяемость строк #296
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
Changes from 4 commits
fc4786c
5afbd56
a286979
10418ef
52cea5f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,9 @@ | ||
| public class App { | ||
| public static void main(String[] args) { | ||
| var email = " SupporT@hexlet.io\n"; | ||
| var email = "\tSupporT@hexlet.io "; | ||
|
|
||
| // BEGIN | ||
| email = email.trim(); | ||
| email = email.toLowerCase(); | ||
| System.out.println(email); | ||
| System.out.println(email.trim().toLowerCase()); | ||
| // END | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,4 +4,11 @@ | |
| * Удаление концевых пробельных символов с помощью метода `.trim()`, например, было: `" hexlet\n "`, стало: `"hexlet"` | ||
| * Приведение к нижнему регистру с помощью метода `toLowerCase()`. Было: `"[email protected]"`, стало: `"[email protected]"`. | ||
|
|
||
| Обновите переменную `email` записав в неё то же самое значение, но обработанное по схеме указанной выше. Распечатайте то, что получилось, на экран. | ||
| Напишите метод `normalize()` | ||
| ``` | ||
| public static final String email = " [email protected]\n"; | ||
| public static String normalize() { | ||
| ... | ||
| } | ||
| ``` | ||
|
||
| Обновите переменную email записав в неё то же самое значение, но обработанное по схеме указанной выше. Распечатайте то, что получилось, на экран. | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Так, а теперь получается нет разницы с тем, что было раньше.
Только если обратите внимание, то мы ранее перезаписывали еременную, тк цепочку методов изучаем в след уроке.