String array split.
Hi,
I'm having some problems with this code, but I can't figure out how to do this.
-this what I know about the method
-the split method is used to organize an array:
-the output is suppose to look something like this:
cat
bat
mouse
moose
but unfortunately for me, its not working even compiling. This code is an example my instructor gave me, but I don't understand why its not working.
String[] animals ="cat, bat, mouse, moose".split(",");

