【PTA:】 Error: class X is public should be declared in a file named X.java

(?: can not come out on the PTA error without looking at the _ (: з) <) _) I have been making this mistake in writing the topic on PTA today.
Error: class X is public should be declared in a file named X.java

Searched a lot of solutions, it is said that the class name and file name to change the same, obviously I changed is really the same duck. I also asked the strong brother big sister, how to change is reported this wrong (; ‘⌒ `)
.
Later, a classmate told me that it was the problem of PTA platform:

http://www.cnblogs.com/zhrb/p/6347738.html



The name of the class is the Main file names, at last it redone success.
a simple grinding by me so long, all want to broken head didn’t expect to be the problem (; ´ д `) ゞ
it is a good habit to look at the instructions

Read More: