Page 1 of 1

Write a method that tales two Strings as input and returns a String that contains the characters that are in both inputs

Posted: Thu Jul 14, 2022 2:11 pm
by answerhappygod
Write A Method That Tales Two Strings As Input And Returns A String That Contains The Characters That Are In Both Inputs 1
Write A Method That Tales Two Strings As Input And Returns A String That Contains The Characters That Are In Both Inputs 1 (26.11 KiB) Viewed 30 times
Write a method that tales two Strings as input and returns a String that contains the characters that are in both inputs at the same locations, in order. For ckample, matchingCharsl"abracadiabra". "aanfwark"l chould return "ara" because the fust, third, and sinth characters are the same, but no others.