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

Method isLowerCase

lab08/tests/speed/StringUtils.java:35–37  ·  view source on GitHub ↗

Returns true if string S consists of characters between 'a' and 'z' only. No spaces, numbers, upper-case, or any other characters are allowed.

(String s)

Source from the content-addressed store, hash-verified

33 * characters are allowed.
34 */
35 public static boolean isLowerCase(String s) {
36 return Pattern.matches("[a-z]*", s);
37 }
38
39 /**
40 * Returns the string that comes right after S in alphabetical order.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected