MCPcopy Create free account
hub / github.com/MolinDeng/Princeton-algs4 / toString

Method toString

LabEnv/03Lab/Point.java:112–115  ·  view source on GitHub ↗

Returns a string representation of this point. This method is provide for debugging; your program should not rely on the format of the string representation. @return a string representation of this point

()

Source from the content-addressed store, hash-verified

110 * @return a string representation of this point
111 */
112 public String toString() {
113 /* DO NOT MODIFY */
114 return "(" + x + ", " + y + ")";
115 }
116
117 /**
118 * Unit tests the Point data type.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected