Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/strings_ii/lowercase.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ For example, in Turkish the lower-case form of the letter `I` is `ı` and not `i
By default, Java uses the rules for the language of the computer it is running on.
So `"I".toLowerCase()` will return `"i"` on an English system and `"ı"` on a Turkish one.

To get behavior that is consistent regardless of the machine it is being run on
you can pass use an explicit `Locale`.
To get behavior that is consistent regardless of the machine it is being run on,
you can use an explicit `Locale`.

```java
~void main() {
IO.println("I".toLowerCase(Locale.US)); // i - on every computer
IO.println("I".toLowerCase(Locale.forLanguageTag("tr-TR"))); // ı - on every computer
~}
```
```