java - Is this a valid a way to use split? -
i trying practice identifying whether or not code valid looking @ it. can't find split method implementation looks this, , want know why.
string[] names = "flowers,are,pretty".split(",",0);
this valid.
string[] names = "flowers,are,pretty".split(",",0); for(int i=0;i<names.length;i++) system.out.println(names[i]);
for more info visit java docs
Comments
Post a Comment