Write the method String convertPhone(String number) in Java that implements the following logic: Given a phone number as a string of...
Search Results
Searching for: Java
Individual Exercises
Write the method boolean hasPrefix(String word) in Java that returns true if the string in word begins with one of these prefixes:
"pre",...
Write the method boolean hasSuffix(String word) in Java that returns true if the string in word ends with one of these suffixes:
"er",...
Write the method boolean containsRoot(String word) in Java that returns true if the string in word contains inside (see below) one of...
Given a string, compute recursively a new string where all spaces in the original one are replaced by an underscore (_).
So given "hello...
Given a string, compute recursively a new string where all the adjacent chars are now separated by an underscore ("_"). So given "hello",...
Given a string, compute recursively a new string where a space is removed and the next letter is converted to uppercase.
So given "Hello...
Given a string, compute recursively a new string where uppercase letters in the original one are preceeded with a space in the new...
Given a string, compute recursively a new string where all vowels in the original string will now be in upper case in the new string. So...