Advertisement
Guest User

Untitled

a guest
May 26th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. // Practice Time: Nullability/Lists
  2. // Create a list with two elements that are null; do it in two different ways.
  3. // Next, create a list where the list is null.
  4.  
  5. listOf(null, null)
  6.  
  7. var list: List<Int?> = listOf(null, null)
  8.  
  9. var list2: List<Int>? = null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement