Would the following create unnecessary memory usage
String[] words = text.split(" ");
for (String s : words)
{...}
Or would the following call text.split(" ") every time the loop is repeated
for (String s : text.split(" "))
{...}
Which way would be more preferable?