Keypad advanced

Output is not showing, however i , matched the answer with the editorial, still its not showing the output

import java.util.*;
public class Main
{
public static void main(String[] args) {
// System.out.println(“Hello World”);
Scanner sc= new Scanner(System.in);
String s=sc.next();
keypad(s," ");
}

static String searchIn [] = { "prateek", "sneha", "deepak", "arnav", "shikha", "palak", "utkarsh", "divyam", "vidhi", "sparsh", "akku" };
        
static String table[]={ " ", ".+@$","abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"};

public static void keypad(String str, String ans)
{
    if(str.length()==0)
    {
        for(String temp:searchIn)
        {
        if(temp.contains(ans))
		{
        System.out.println(temp);
		}
        }
        return;
    }
    
    char cc=str.charAt(0);
    String ros=str.substring(1);
    String code=table[cc-'0'];
    
    for(int i=0;i<code.length();i++)
    {
        keypad(ros,ans+code.charAt(i));
    }
}

}

@minal.251298,
You can try this code: https://ide.codingblocks.com/s/194320
Error was that in main : keypad(s," "); instead of initializing ans as " " you should have used “” only,

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.