Write a method that accepts a reference to a String object as an argument and returns true

Question:

Write a method that accepts a reference to a String object as an argument and returns true if the argument ends with the substring “.com”. Otherwise, the method should return false.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: