diff options
Diffstat (limited to 'usage_examples/experimental/ExtensionMethodExample_pre.jpage')
-rw-r--r-- | usage_examples/experimental/ExtensionMethodExample_pre.jpage | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usage_examples/experimental/ExtensionMethodExample_pre.jpage b/usage_examples/experimental/ExtensionMethodExample_pre.jpage index 26d0ee38..b3b9f1fa 100644 --- a/usage_examples/experimental/ExtensionMethodExample_pre.jpage +++ b/usage_examples/experimental/ExtensionMethodExample_pre.jpage @@ -18,6 +18,7 @@ class Extensions { public static String toTitleCase(String in) { if (in.isEmpty()) return in; - return "" + Character.toTitleCase(in.charAt(0)) + in.substring(1).toLowerCase(); + return "" + Character.toTitleCase(in.charAt(0)) + + in.substring(1).toLowerCase(); } } |