Hi, I’ve been going nuts lately on different clash of coding because I can’t use the split method. Eveytime I try to convert a string to an array using the split function, I get an error saying that “Split() is not a function”.
Well, there could be a couple of things which you could be overlooking like:
Maybe you forgot to import the “util” package. (I am assuming you’re working with java)
You could be typing String.Split() instead of String.split();
Sometimes not choosing the right version of compiler gives this error where you have to choose among different compiler so, try going for the oracle version of the compiler instead of the “open” compilers.
Hope this helps. Pardon me if I didn’t get it right.
Cheers.