X497: Review - Substring Practice

Complete the method below for evaluating the substring of any string. If the given string is empty, return "Empty". If the parameters are invalid, return "Invalid Parameters". Otherwise, return the substring.

Examples:

slicer("Hello World",0,1) -> "H"
slicer("University of North Carolina at Charlotte",32,41) -> "Charlotte"

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.