Answer to Question #328383 in Java | JSP | JSF for mendaj

Question #328383

1. Anagrams!



by CodeChum Admin




Two strings are called anagrams, if they contain the same characters, but the order of the characters may be different.






Given a string consisting of lowercase letters and question marks, s1, and another string consisting of lowercase letters, s2, determine whether these two strings could become anagrams by replacing each ? character in s1 with a letter.






Input






1. First string






Constraints




Contains only lowercase letters and/or question marks




2. Second string






Constraints




Contains only lowercase letters




Output






The first line will contain a message prompt to input the first string.




The second line will contain a message prompt to input the second string.




The last line contains the message "anagram" if the strings could become anagrams by replacing all the ? characters of s1 with letters and "false" otherwise.





0
Service report
It's been a while since this question is posted here. Still, the answer hasn't been got. Consider converting this question to a fully qualified assignment, and we will try to assist. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS