[SOLVED] Method that takes a Collection of String objects

7.00 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

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.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.