it does not print anything
Ok, look at the code to see what is supposed to be in the variable that is returned by the method.
How would it be possible for the method to leave the value in the variable as an empty String? That does not print anything.
Add some print statements in the code that print out the values of all the variables used in the if statements that are used to control what is supposed to be returned.
One logic problem I see in the code is a missing else statement at the end of the if/else if chain. There needs to be an else statement at the end that prints a message if none of the above statements were true. Add the following at the end of the if/else if chain:
else {
System.out.println("No match for choice="+choice);
}