SHARE
TWEET

Untitled

a guest May 26th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top