GetSubsequence with ascii

import java.util.ArrayList;
public class getsubsequence {
public static ArrayList getss(String str)
{
if(str.length()==0)
{
ArrayList base=new ArrayList<>();
base.add("");
return base;
}
char cc=str.charAt(0);
String ros=str.substring(1);
ArrayList myresult=new ArrayList();
ArrayList recresult=getss(ros);
for(int i=0;i<recresult.size();i++)
{
myresult.add(recresult.get(i));
String s=recresult.get(i);
char a=str.charAt(0);
int b=(int)a;
myresult.add(cc+recresult.get(i));
myresult.add(Integer.toString(b));
}
return myresult;
}
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println(getss(“abc”));
}

}

i have written the above code but its giving me some duplicate values.
since you told me to share the code herby above i have shared my code.

These parts of your code are not required. They are giving the duplicate values so remove these lines.