Suppose s is some string that has been created inside main


Suppose s is some string that has been created inside main, and suppose s.length() is greater than 3 (so s has more than 3 characters). Using the String class methods length and substring, write one or several lines of code that will print the last three characters in s. For example if s is the String "donkeys", then your code should print eys.

Solution Preview :

Prepared by a verified Expert
Business Management: Suppose s is some string that has been created inside main
Reference No:- TGS02314789

Now Priced at $30 (50% Discount)

Recommended (97%)

Rated (4.9/5)