Respuesta :
There are several ways to manipulate strings; this includes concatenating and iterating through strings.
The method call that does not work as intended is: (a) containsArt ("rattrap", "similar", "today")
From the question, we understand that the method would return true if any of s1, s2 and s3 contain the string "art"
From the list of given options, none of the strings in the method call (a) contains "art". i.e. "rattrap", "similar" and "today" do not contain "art"
But the method call would still return true.
When "rattrap", "similar" and "today" are concatenated on the first line of the method, the new string "rattrapsimilartoday" contains "art".
Hence, the method call that does not work as intended is: (a) containsArt ("rattrap", "similar", "today")
Read more about strings at:
https://brainly.com/question/16024994
Answer:
There are several ways to manipulate strings; this includes concatenating and iterating through strings.
The method call that does not work as intended is: (a) containsArt ("rattrap", "similar", "today")
From the question, we understand that the method would return true if any of s1, s2 and s3 contain the string "art"
From the list of given options, none of the strings in the method call (a) contains "art". i.e. "rattrap", "similar" and "today" do not contain "art"
But the method call would still return true.
When "rattrap", "similar" and "today" are concatenated on the first line of the method, the new string "rattrapsimilartoday" contains "art".
Hence, the method call that does not work as intended is: (a) containsArt ("rattrap", "similar", "today")
Read more about strings at:
brainly.com/question/16024994