Strings-Remove Duplicates

what is problem in my code
import java.util.*;
public class Main {
public static char out[10000];
public static int k=0;
public static void del(string s,int i){
if(s[i]="/0"){
out[k]="/0";
return;
}
int j=i;
out[k++]=s[i];
while(s[j] && s[j]==s[i])
j++;
del(s,j);

}
public static void main(String args[]) {
    char s[10000]="abcab";
    del(s,0);
    System.out.println(c);
}

}

@Sweta,
It seems you have converted the code from CPP directly. There are syntax mistakes all over. You don’t initialize the array as you’ve done in java. Nor do you access an array as you’ve done in your code. Please correct the code.

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.