Plz me to generalise the code for string more than 2 numbers

see the idea can be as i mentioned in one of my previous post also :
1)take a string as input
say the string you are taking input as 234

  1. break the string as 2 + 34…call recursion on 34…recursion will do the work on 34 and return you an arraylist of strngs(make your return type of function as ArrayList)…

3)Now just do your self work that is for every character of 2(def) append it with each String which came as recursion result(from 34’s recursive call)

return the new ArrayList

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.