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)
| 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 |