Java Error: 'class Round is public, should be declared in a file named Round.java'
This error message is indicating that the class 'Round' should be declared in a file named 'Round.java'. This is because in Java, the name of the file should match the name of the public class declared in that file.
To fix this error, you should create a new file named 'Round.java' and move the 'Round' class definition into that file. Alternatively, you could rename the existing file to 'Round.java' if it is currently named something different.
原文地址: https://www.cveoy.top/t/topic/njmO 著作权归作者所有。请勿转载和采集!