Get subsequences(Unable to find the error)

import java.util.ArrayList;

public class Subsequences
{
public static void main(String[] args)
{
System.out.println(getSS(“abc”));

}
public static ArrayList<String> getSS(String str)
{
    char cc= str.charAt(0);
    String ros=str.substring(1);
    ArrayList<String> myResult= new ArrayList();
    ArrayList<String> recResult= getSS(ros);
    for(int i=0;i<recResult.size();i++)
    {
        myResult.add(recResult.get(i));
        myResult.add(cc+recResult.get(i));
    }
    return myResult;
}

}

Hey @jdkatti
add base case
if(str.length()==0) {
ArrayList br = new ArrayList<>();
br.add("");
return br;
}
correct code :

import java.util.ArrayList;

public class Main {
public static void main(String[] args) {
System.out.println(getSS(“abc”));
}

public static ArrayList<String> getSS(String str) {
	if(str.length()==0) {
		ArrayList<String> br = new ArrayList<>();
		br.add("");
		return br;
	}
	char cc = str.charAt(0);
	String ros = str.substring(1);
	ArrayList<String> myResult = new ArrayList<>();
	ArrayList<String> recResult = getSS(ros);
	for (int i = 0; i < recResult.size(); i++) {
		myResult.add(recResult.get(i));
		myResult.add(cc + recResult.get(i));
	}
	return myResult;
}

}