solution

Create a class named StringUtility that contains no attributes. Implement the following methods in the class: 1. A method that accepts an integer in the form of a string. The method should then add all of the digits in even locations from the left-hand side of the string, i.e. index 0, 2, 4, 6, … The sum should then be returned to the caller 2. A method that accepts a string as input. It should then reverse this string and return it to the caller 3. A method that accepts a string as input and determines whether it begins will an uppercase letter or not. The method should return a Boolean value of true or false 4. A method that accepts a string as input and determines whether it contains at least one numeric digit or not. The method should return a Boolean value of true or false 5. A method that accepts a string as input and determines whether all letters in the string are in uppercase or not. The method should return true if the string strictly contains only uppercase letters. If it contains any lowercase or nonalphabetic characters, it should return false Create another class called TestStringUtility and test the functionality of the methods you created above
 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
Looking for a Similar Assignment? Our Experts can help. Use the coupon code SAVE30 to get your first order at 30% off!

Hi there! Click one of our representatives below and we will get back to you as soon as possible.

Chat with us on WhatsApp