Match operators

Report a typo

Match the operators and their analogues:

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
___

Create a free account to access the full topic