I made basketball program using Java that runs on console
Descriptive variable names
You have this:
player = scanner.nextLine();

Does the input reflect a player?
I think a more descriptive name would be playerInput. That makes the switch more readable as well.
Make methods do one thing (single responsibility principle)
Your shootBall method does three things: asking for input, calculating the result, and printing the result. Ideally this would be split up:

private String getInput()
private String shootBall(String input)
private String printResult(String result)

This makes it easier to change the implementation of a responsibility and easier to read the logic of your program.
The main while loop would become
while(true) {
    String input = getInput();
    String result = shootBall(input);
    printResult(result);
}

This makes it easier for coding some exit value as well;
while (true) {
    String input = getInput();
    if (input.equals(&quot;QUIT&quot;))
      break;
    String result = shootBall(input);
    printResult(result);
} 

Or, if you don't like the while-true-break
String input;
while (!(input = getInput()).equals(&quot;QUIT&quot;)) {
    printResult(shootBall(input));
}