Question: @param target - the string to look for * @return An array of String objects which contains the filenames of Photo objects in * photos
@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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
