Match the operators and their analogues:
Avoiding NPEs. Null safety
Match operators
Report a typo
Match the items from left and right columns
bottle ?: 0
bottle?.volume
bottle!!.length
if (bottle != null) bottle else 0
if (bottle == null) throw NullPointerException() else bottle.length
if (bottle == null) null else bottle.volume
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.