Skip to content

Commit ed85d5d

Browse files
committed
update basic types
1 parent ee7fb59 commit ed85d5d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

guide/chapter01-basic_types.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,10 @@ System.out.println("hello".length());
107107
```
108108

109109
to upper/lower case
110+
Locale.ROOT here ask for a result independent of the OS language
110111
```java
111-
System.out.println("hello".toUpperCase());
112-
System.out.println("hello".toLowerCase());
112+
System.out.println("hello".toUpperCase(Locale.ROOT));
113+
System.out.println("hello".toLowerCase(Locale.ROOT));
113114
```
114115

115116
repeat the same pattern

jupyter/chapter01-basic_types.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,15 +202,15 @@
202202
{
203203
"cell_type": "markdown",
204204
"metadata": {},
205-
"source": ["to upper/lower case\n"]
205+
"source": ["to upper/lower case\n", "Locale.ROOT here ask for a result independent of the OS language\n"]
206206
}
207207
,
208208
{
209209
"cell_type": "code",
210210
"execution_count": null,
211211
"metadata": {},
212212
"outputs": [],
213-
"source": ["System.out.println(\"hello\".toUpperCase());\n", "System.out.println(\"hello\".toLowerCase());\n"]
213+
"source": ["System.out.println(\"hello\".toUpperCase(Locale.ROOT));\n", "System.out.println(\"hello\".toLowerCase(Locale.ROOT));\n"]
214214
}
215215
,
216216
{

0 commit comments

Comments
 (0)