Hey guys, im new to the forum. I just wanted to ask something about this code.
I want to change the name of the Player J1 inside the main, but its being impossible for me.
Always prints "Player 1".. and i want to change the name. the only way i can change the name is doing string name public, but i want string name to be private. Help? thanks
Thank you, i changed the get for the set like you said, and also there was an error on the declaration of the class player. Now it works. It should be: