Please help me out with this code

import java.util.Scanner;

public class Removedups
{
static Scanner scn=new Scanner(System.in);
public static void main(String[] args)
{
System.out.println("Enter a string ");
String str=scn.nextLine();
removeDups(str,0,1);

}
public static void removeDups(String str,int fc, int sc) // fc:first character sc:second character
{
	if(str.length()==1)
	{
		System.out.println(str);
	}
	char a= str.charAt(fc);
	if(a == str.charAt(sc))
	{
		str= a+ str.substring(sc+1);
	}
	
	
	removeDups(str,fc+1, sc+1);
	 System.out.println(str);
}

}

You got 100 score for this problem. please mark it as resolved.