Question: Write a method called frontBack that has a string parameter. The method should return a new string where the first 5 characters and last 5
Write a method called frontBack that has a string parameter.
The method should return a new string where the first characters and last characters of the original string parameter have been exchanged.
If the length of the string parameter is less than then return the unaltered string.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
