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

Method incrementCharArray

lab7/bstmap/StringUtils.java:59–66  ·  view source on GitHub ↗

Helper function for nextString. Increments the Pth position of X by one, wrapping around to 'a' if p == 'z'. If wraparound occurs, then we need to carry the one, and we increment position P - 1. Will fail for a character array containing only zs.

(char [] x, int p)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

nextStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected