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.

Reset

Practice a different Java exercise