-1
Well, I’m doing a job for college where I need to identify the number of words that a string has in Kotlin.
Type :
texto = "Ola Mundo"
The variable numeropalavra
s has to be equal to 2.
Is there a function that checks the number of words, without me having to cycle to check letter by letter to find the number of words?