Starting from:

$5

Method that takes a Collection of String objects Solution

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.

More products