SHARE
TWEET

Untitled

a guest Feb 16th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var nullableVariable: String?  = null
  2. var nullableVariable2: String? = "Aayush"
  3.  
  4. val name = nullableVariable ?: "String if null \n"
  5. val name2 = nullableVariable2 ?: "String if null"
  6.  
  7. print(name)
  8. print(name2)
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