The program is about Permutation of Strings and uses recursive function call.
Source Code : Java2s
I added some print statements for understanding.
My Question is how do we differentiate the inner loop variables from the outer loop variables ?
I have tried
but was not helpful.
Please suggest any other methods. I have also attached the output image.
Thanks in advance.