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

Method toString

serialization/Worm.java:36–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 System.out.println("Zero-argument constructor");
35 }
36 @Override public String toString() {
37 StringBuilder result = new StringBuilder(":");
38 result.append(c);
39 result.append("(");
40 for(Data dat : d)
41 result.append(dat);
42 result.append(")");
43 if(next != null)
44 result.append(next);
45 return result.toString();
46 }
47 public static void
48 main(String[] args) throws ClassNotFoundException,
49 IOException {

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected