Write a method that tales two Strings as input and returns a String that contains the characters that are in both inputs
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Write a method that tales two Strings as input and returns a String that contains the characters that are in both inputs
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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!