The following recursive methodcalled z is created. This method accepts two parameters:A string s, and an integer index
The code in the method is: if (index == s.length()) return "";<------ base="">------> if(index % 2 == 0) return ""+ s.charAt(index) + z(s,index+1);<---- recursive="">----> else return z(s,index+1);<----- recursive="">-----> What would be the output with the call: z("javajavajava",0);
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here