Skip to content

Instantly share code, notes, and snippets.

@novemio
Created December 7, 2018 10:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save novemio/35d1dd3e75b3c8184a754341c8642906 to your computer and use it in GitHub Desktop.
Save novemio/35d1dd3e75b3c8184a754341c8642906 to your computer and use it in GitHub Desktop.
fun main(arg:Array<String>){
val s1 = "abc"
val s2 = StringBuilder("abc").toString()
val s3 = "abc"
println(s1 === s2)
println(s1 == s2)
println(s1 === s3)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment