Question: 5 points Complete the justFirstChars method that accepts an array list of String objects as a parameter. The method generates and returns a string containing
5 points Complete the justFirstChars method that accepts an array list of String objects as a parameter. The method generates and returns a string containing just the first character of each of the strings in the list. For example, given the array list ["apple", "banana", "kiwi"), the method returns the string "abk". Remember, you need to get the string from the list and THEN use it to call a string method. The charAt and substring methods can be used to extract the first letter of each string. * public static String justFirstChars (ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
