I wrote the code and when I run it, all the time there is an error in different parts. I’m currently running into an error here:
public class GuessGame {
Player p1;
Player p2;
Player p3;
public void startGame(){
p1 = new Player();
p2 = new Player();
p3 = new Player();
}
}
I do not understand what the problem is and how to avoid such errors, what affects them? And what other services are there for code analysis? I want to check it in the process, and not see its errors at startup.