Question: Write a method to return the first and last letters as a new string. Write a method that will return the middle letter. Write a

Write a method to return the first and last letters as a new string.
Write a method that will return the middle letter.
Write a method that will check to see if the first and last letter of the string are the same. [.equals() will be
useful ]
Write a method that will determine the difference is ASCII value between a single letter parameter and the first
letter of the string. You will need to use compareTo.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!