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

Method display

strings/StartEnd.java:19–25  ·  view source on GitHub ↗
(String message)

Source from the content-addressed store, hash-verified

17 private String regex;
18 Display(String regex) { this.regex = regex; }
19 void display(String message) {
20 if(!regexPrinted) {
21 System.out.println(regex);
22 regexPrinted = true;
23 }
24 System.out.println(message);
25 }
26 }
27 static void examine(String s, String regex) {
28 Display d = new Display(regex);

Callers 1

examineMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected