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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -