Question: Write the method capitalize which has an array of Strings as a parameter. The method should create and return a new ArrayList of Strings which
Write the method capitalize which has an array of Strings as a parameter. The method should create and return a new ArrayList of Strings which has all the same values as the parameter array, but with first letter capitalized and the remainder of the String in lowercase (you do not know if the words coming in are all caps, all lower or mixed - do not assume anything!)
public static ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
