Created
May 30, 2018 13:44
-
-
Save bijancn/195b05b06f507f6c9e39389ff72e2240 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val x = new java.lang.StringBuilder("Hello") | |
val r1 = x.append(" World").toString | |
// 'Hello World' | |
val r2 = x.append(" World").toString | |
// 'Hello World World' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment