Question: Build a utility class called MyStringUtils that you want to distribute as a library. Implement the following methods inside this class. 1. public static String

 Build a utility class called MyStringUtils that you want to distribute

Build a utility class called MyStringUtils that you want to distribute as a library. Implement the following methods inside this class. 1. public static String reverse(String s) reverses the passed in string. Do NOT use StringBuilder.reverse() 2. public static boolean isPalindrome(String s) -checks if the passed in string is a palindrome 3 public static int countofVowels(String s) -counts how many vowels in passed in string 4. public static boolean oddContains(String main,String subString) - checks if the main string "oddContains" the substring. a. Ex) "abcdefg" odd contains "aceg" b. Ex) "abcdefghi" odd contains "aceg" c. Ex) "abcdefg" does NOT odd contain "ab" 5. Write all unit tests under MyStringUtilsTest.java

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!