[SOLVED] Method that takes a Collection of String objects

7.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

java file icon LongestString.java (1.5 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (1 vote)

Create a method that takes a Collection of String objects (this must accept any type of collection, not just a specific implementation) and returns the longest of the Strings beginning with the character ‘M’ (uppercase only). Any String that does not begin with ‘M’ should be ignored. If the collection does not contain any String objects beginning with the character ‘M’, return null.

  • LongestString.java