This is the same as with checkNotNull, but with the difference that it throws an instance of the IllegalArgumentException class:
val strNoNulls: String = requireNotNull(str)
{ "str argument can not be null" }
This is the same as with checkNotNull, but with the difference that it throws an instance of the IllegalArgumentException class:
val strNoNulls: String = requireNotNull(str)
{ "str argument can not be null" }
3.16.82.82