We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7e974b commit 85c179cCopy full SHA for 85c179c
chapter01-basic_types.jsh
@@ -85,8 +85,9 @@ System.out.println(multilineText);
85
System.out.println("hello".length());
86
87
// to upper/lower case
88
-System.out.println("hello".toUpperCase());
89
-System.out.println("hello".toLowerCase());
+// Locale.ROOT here ask for a result independent of the OS language
+System.out.println("hello".toUpperCase(Locale.ROOT));
90
+System.out.println("hello".toLowerCase(Locale.ROOT));
91
92
// repeat the same pattern
93
System.out.println("|*|".repeat(3));
0 commit comments