Question 1 of 5
A pottery studio shortens glaze codes with this recursive method.
public static String zip(String s)
{
if (s.length() <= 2)
{
return s;
}
return s.substring(0, 1) + zip(s.substring(2));
}
(a) State the return value of zip("GLAZE"). (b) State the return value of zip("OX"). (c) Explain how the base case treats strings of length 0, 1, or 2.