hellodate clashes with package of same name好像是说---hellodate和相同名字的包冲突很奇怪的错误?

解决方案 »

  1.   

    错误提示:
      hellodate和相同名字的包名冲突
      

  2.   

    这我这里有这样的错误
    --------------------Configuration: JDK version 1.4 <Default>--------------------
    D:\Ex_java\test\2.java:2: class hellodate is public, should be declared in a file named hellodate.java
    public class hellodate{
           ^
    1 error把class前的public去掉就没有错误了
      

  3.   

    是不是你原来定义过一个包叫做hellodate,这里你又定义了一个类和它重名了。在我这里编译运行一点问题没有。