This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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