Challenge problem

what is wrong in this code?
it is showing compilation error.

import java.util.*;

public class Main {

public static void main(String args[]) {
	Scanner scn = new Scanner(System.in);
	String str = scn.next();
	System.out.println(getSS(str));
}
public static ArrayList<String> getSS(String str) {
	if (str.length() == 0) {
		ArrayList<String> base = new ArrayList();
		base.add("");
		return base;
	}
	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;
}

}

@VinayakSingh11111 have you read this line bro?
First line contains an integer N , the no of strings.
Next, N lines follows one string per line

If ya query is clear mark it resolved and rate full.
Happy coding!

but it is not compiling

Always include angular bracket on left side also, if you check on eclipse your code will be giving ya a warning, don’t ignore them because online judges don’t accept them.
So correct way is ArrayList< String> base = new ArrayList<>();

Also add support for multiple test case also as given in input!