Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
May 25th, 2018
79
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
// Adding a null check, the Java way
if (user != null) {
println "Java FirstName = ${user.firstName}"
}
// Null check the Groovy way
println "Groovy FirstName = ${user?.firstName}"
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
Bash | 56 sec ago | 7.64 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 2 min ago | 0.39 KB
RequestException: error with request
Python | 5 min ago | 3.24 KB
CASHAPP Free Amazon Giftcard
GetText | 11 min ago | 0.32 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 11 min ago | 0.38 KB
ServerError: received 502 HTTP response
Python | 19 min ago | 2.98 KB
ServerError: received 502 HTTP response
Python | 21 min ago | 3.38 KB
RequestException: error with request
Python | 22 min ago | 2.84 KB
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
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!