0
Main.java:1: error: class Tictactoe is public, should be declared in a file named Tictactoe.java. -> public class Tictactoe{
I compile this code, compiler show me error, what should I do?
1 Resposta
0
To resolve this error, you should rename the file Main.java to Tictactoe.java to match the public class name declared inside. This ensures that the file name matches the public class name, allowing the compiler to properly identify and link them together.