In Kotlin, how do you check if a string is not null and not empty? - Study24x7
Social learning Network
5 followers study24x7 16 Oct 2024 11:18 AM study24x7 study24x7

In Kotlin, how do you check if a string is not null and not empty?

A

if (!string.isNullOrEmpty())

B

if (string != null && !string.isEmpty())

C

if (string != null && string.length > 0)

D

All of the above

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles