Update kotlin.html.markdown

This commit is contained in:
Zohar Jackson 2018-09-10 11:44:00 -04:00 committed by GitHub
parent 6d087ae0f2
commit 14719728dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -370,6 +370,12 @@ fun useObject() {
val someRef: Any = ObjectExample // we use objects name just as is
}
/* The not-null assertion operator (!!) converts any value to a non-null type and
throws an exception if the value is null.
*/
var b: String? = "abc"
val l = b!!.length
```
### Further Reading