Hi, I currently have some code that someone has written, where they have wrote indexof and it returns an error ‘length cannot be less than zero) how could I write a statement that would allow nulls
Length cannot be less than zero
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Rajanikant HawaldarRank #110 · 20.2K reputationPosted Aug 25, 2021, 6:27 AM EDT
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Aug 25, 2021, 6:14 AM EDT
Samanth50 reputationPosted Aug 25, 2021, 6:19 AM EDT
Samanth50 reputationPosted Aug 25, 2021, 6:29 AM EDT