(?: 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:
- MySql 8.x java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed
- RuntimeError: Expected hidden[0] size (x, x, x), got(x, x, x)
- A problem occurred configuring project ‘:x x x‘. > java.lang.NullPointerException (no error message)
- Apache Groovy——java.lang.NoSuchMethodError: x.x.x: method <init>()V not found
- Could not write JSON: write javaBean error, fastjson version x.x.x, class
- [Solved] emulator: glteximage2d: got err pre 🙁 0x502 internal 0x1908 format 0x1908 type 0x1401
- CLP: error: getaddrinfo enotfound http://x.x.x.x/
- There is no getter for property named ‘id‘ in ‘class java.lang.Integer‘
- Mybatis error,There is no getter for property named ‘xx’ in ‘class java.lang.String The solution
- [-] handler failed to bind to x.x.x.x: Port troubleshooting
- module ‘win32com.gen_py.00020813-0000-0000-C000-000000000046x0x1x9‘ has no attribute ‘CLSIDToClassMa
- Code::Blocks 12.11 error: ‘nullptr’ was not declared in this scope&GNU GCC -std=gnu++0x
- 1067 – Invalid default value for ‘sex‘1366 – Incorrect string value: ‘\xE6\x8A\x80\xE6\x9C\xAF…‘ f
- Solve the problem of using in tensoft 2. X tf.contrib.slim No module named appears in the package: tensorflow.contrib problem
- C + +: error in X utility file
- Microsoft OLE DB Provider for SQL Server error & #x27;80040e4d & #x27;
- OSD deployment failure code (0x00000001) 0x80004005
- Common forms of springboot2. X boot class location
- Error inflating class in WebView in Android 5. X android.webkit.WebView Solutions
- Unhandled exception at 0x00000000: 0xc0000005: access violation at position 0x0000000000