Java - Return the substring that is between first and last

Java - Return the substring that is between first and last

More to explore

Based on this image's title: “Java - Return the substring that is between first and last