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

Method isLowerCase

lab07/tests/StringUtils.java:32–34  ·  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

30 * characters are allowed.
31 */
32 public static boolean isLowerCase(String s) {
33 return Pattern.matches("[a-z]*", s);
34 }
35
36 /** Returns the string that comes right after S in alphabetical order.
37 * For example, if s is 'potato', this method will return 'potatp'. If

Callers 1

validGuessMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected