用腾讯的那个云IDE学学JAVA,就是那个cloud studio,预设环境用的All in One,想输出个“abcdefg”,结果提示错误,求教大家这是为什么?问题显示如下:
[Running] cd "/root/RemoteWorking/" && javac Hello.java && java Hello
Hello.java:1: error: class hello is public, should be declared in a file named hello.java
public class hello {
^
1 error
[Done] exited with code=1 in 0.772 seconds
系统显示问题内容:
{
"resource": "/root/RemoteWorking/Hello.java",
"owner": "generated_diagnostic_collection_name#3",
"code": "32",
"severity": 4,
"message": "Hello.java is not on the classpath of project RemoteWorking_eb8983ed, only syntax errors are reported",
"source": "Java",
"startLineNumber": 1,
"startColumn": 1,
"endLineNumber": 1,
"endColumn": 2
}