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

Method split

strings/Splitting.java:12–15  ·  view source on GitHub ↗
(String regex)

Source from the content-addressed store, hash-verified

10 "you must cut down the mightiest tree in the " +
11 "forest...with... a herring!";
12 public static void split(String regex) {
13 System.out.println(
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

Callers 15

mainMethod · 0.95
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
IterableClassClass · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80

Calls 1

toStringMethod · 0.45

Tested by 2

mainMethod · 0.64
mainMethod · 0.64