Write a program that emulates a string processor. It reads two strings and an operator and outputs the result.
There are three possible operations:
equalsreturnstrueif these strings are equals, otherwisefalse(s1==s2);plusappends the second line to the first line (s1+s2);endsWithreturnstrueif the first string ends with the second string, otherwisefalse(s1.endsWith(s2)).
Output the result as a string. If the operation is unknown, print Unknown operation without quotes.
You can use the
endsWith(suffix) string function to find whether the string ends with a specified string.