0
/ 15
[Based on an exercise at https://codeworkout.cs.vt.edu/]
Write a function in Java that implements the following logic: Given a string,...
[Based on an exercise at https://codeworkout.cs.vt.edu/]
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.
Examples:
theEnd("Hello",true) -> "H"
Your feedback will appear here when you check your answer.