MCPcopy Create free account
hub / github.com/Berkeley-CS61B/skeleton-sp23 / isAllzs

Method isAllzs

lab07/tests/StringUtils.java:76–78  ·  view source on GitHub ↗

Returns true if S is all 'z'. False for empty strings

(String s)

Source from the content-addressed store, hash-verified

74
75 /** Returns true if S is all 'z'. False for empty strings */
76 public static boolean isAllzs(String s) {
77 return Pattern.matches("[z]+", s);
78 }
79
80}

Callers 1

nextStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected