0
/ 1.0
Write a function in Java that implements the following logic: Given a string, return a string of length 1 from its front, unless front
is...
Write a function in Java that implements the following logic: Given
a string, return a string of length 1 from its front, unless front
is false, in which case return a string of length 1 from its back.
The string will be non-empty.
Your feedback will appear here when you check your answer.