This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
above two java file are in the same directory.when I compile Hello.java,it passed,then I comile HelloWorld.java,exist error one,[error] HelloWorld.java:cannot resolve symbol symbol:class Hello location:class HelloWorld public class HelloWorld implemnets Hello 1 errors [/error] [hr] but when I do it as following,compile well.
reslt rint dog I dunno the reason.help me!
Thanks...qingwu<br />When I open my eyes,I see your pretty face.
I think because you must have one public class or interface per source file if you want your interface to be public you should place it on a different file named like your interface identifier, But if you want to put them on the same source file you must use default access modifier for your interface
The Code is the Programmer
Joined: Feb 19, 2003
Thanks David,Richard... I forgot set current directory to classpath.now it is ok.thanks