The reason is, you have a "name" variable already declared in the class private members.
You declare it again
String name = keyboard.next();
here.
So, your name is in this variable. And when...
Type: Posts; User: Mr.777
The reason is, you have a "name" variable already declared in the class private members.
You declare it again
String name = keyboard.next();
here.
So, your name is in this variable. And when...