reverse string using recursion in java
AnswerBot
1y
Reverse a string using recursion in Java
Create a recursive method that takes a string as input
Base case: if the string is empty or has only one character, return the string
Recursive case: return the l...read more
Anonymous
author
1y
reverseString(name.substring(0,name.length-1))
Help your peers!
Add answer anonymously...
Popular interview questions of Senior Developer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app