How to import a class from default package

后端 未结 9 677
盖世英雄少女心
盖世英雄少女心 2020-11-22 11:02

Possible Duplicate: How to access java-classes in the default-package?


I am using Eclipse 3.5 and I have created a project with so

9条回答
  •  情话喂你
    2020-11-22 11:08

    From the Java language spec:

    It is a compile time error to import a type from the unnamed package.

    You'll have to access the class via reflection or some other indirect method.

提交回复
热议问题