如果我編譯Java程序,我得到這個錯誤如果我編譯Java程序,我得到這個錯誤
b1.java:3: cannot access String
bad class file: .\String.java
file does not contain class String
Please remove or make sure it appears in the correct subdirectory of the classpath.
public static void main(String ar[])throws IOException{
你是否編譯一個名爲String.java的文件 – 2014-12-13 11:36:42
標題說'任何Java程序',但你的文章只使用' String.java」 – Charlie 2014-12-13 11:45:50