CODE GIVING ONLY 1 OUTPUT

package recursion;
import java.util.ArrayList;
public class permutation {
public static void print(String ques,String ans)
{
if(ques.length()==0)
{
System.out.println(ans);
return;
}
for(int i=0;i<ques.length();i++)
{

	 char c=ques.charAt(i);
	 ques=ques.substring(0, i)+ques.substring(i+1);
	 print(ques,ans+c);
 }
 return;

}
public static void main(String[] args) {

print(“abc”,"");
}

}

PLEASE share your code after saving it on ide.codingblocks.com its very difficult to read it this way.also this adds new errors to the code


here s your corrected code
if this solves your doubt please mark it as resolved :slight_smile: