X28: theEnd

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 Answer:

Feedback

Your feedback will appear here when you check your answer.