Answered step by step
Verified Expert Solution
Question
1 Approved Answer
/ * * * ( 8 marks ) * @param target - the string to look for * @return An array of String objects which
marks
@param target the string to look for
@return An array of String objects which contains the filenames of Photo objects in
photos which contain the parameter target.
eg If the photos array contained the following:
photos
Photofilename "catpicture
Photofilename "cat
Photofilename "othercatpicture"
Photofilename "lotsofcats"
Photofilename "dog"
Example
findPhotosContainingcat should return the array:
"catpicture
"cat
"othercatpicture",
"lotsofcats"
Example
findPhotoContainingpicture should return the array:
"catpicture
"othercatpicture"
Example
findPhotosContainingabc should return the array
HINT: Week Lesson
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started