There are no pointers in java.
What you have in java are variables.

In your case there are 4 variables in your program:
The variable "sc" of type Scanner, the variable "name" of type String and...