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

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 words) { String letters for (int k = 0; k

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!