MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / main

Method main

strings/Splitting.java:16–20  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

14 Arrays.toString(knights.split(regex)));
15 }
16 public static void main(String[] args) {
17 split(" "); // Doesn't have to contain regex chars
18 split("\\W+"); // Non-word characters
19 split("n\\W+"); // 'n' followed by non-words
20 }
21}
22/* Output:
23[Then,, when, you, have, found, the, shrubbery,, you,

Callers

nothing calls this directly

Calls 1

splitMethod · 0.95

Tested by

no test coverage detected