MCPcopy Create free account
hub / github.com/asimihsan/challenges / splitLines

Method splitLines

interview/SplitLines.java:18–44  ·  view source on GitHub ↗

Wrap one big string to a boundary, e.g. 80 characters for a terminal. Returns a list of strings that a client will probably join with a line feed character. e.g. "i am a foobar fabulous yes", 6 becomes ["i am a", "foobar", "fabul-", "ous y-", "es"] @param input Input string to split. Assume no li

(String input, int length)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainMethod · 0.95

Calls 3

appendMethod · 0.80
addMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected