Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Practice Time: Nullability/Lists
- // Create a list with two elements that are null; do it in two different ways.
- // Next, create a list where the list is null.
- listOf(null, null)
- var list: List<Int?> = listOf(null, null)
- var list2: List<Int>? = null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement