MCPcopy Create free account
hub / github.com/Berkeley-CS61B/skeleton-sp21 / nextString

Method nextString

lab7/bstmap/StringUtils.java:43–51  ·  view source on GitHub ↗

Returns the string that comes right after S in alphabetical order. For example, if s is 'potato', this method will return 'potatp'. If the last character is a z, then we add to the next position, and so on.

(String s)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

insertInOrderMethod · 0.95

Calls 3

isAllzsMethod · 0.95
allAsMethod · 0.95
incrementCharArrayMethod · 0.95

Tested by 1

insertInOrderMethod · 0.76