Write a static method, endsWell, that takes a String, str, a…
Write a static method, endsWell, that takes a String, str, and returns true only if str ends in “ry”; false otherwise. Examples: endsWell(“rye”) should return: falseendsWell(“ry”) should return: trueendsWell(“harry harry”) should return: trueendsWell(“hurray”) should return: false
Read Details