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:
Related Book For
Starting Out With Java From Control Structures Through Data Structures
ISBN: 9780133957051
6th Edition
Authors: Tony Gaddis
Question Posted: