How to import a package from Eclipse?

前端 未结 3 725
攒了一身酷
攒了一身酷 2021-01-12 02:39

In one of my directories I have all .java files which belong to one package (\"game\"). Now I want to create one .java file which does not belong to this package and which i

3条回答
  •  走了就别回头了
    2021-01-12 03:10

    You might also want to use Eclipse's 'Organize imports' shortcut: Ctrl + Shift + O.

    This will find all missing types and add the appropriate imports automatically.

提交回复
热议问题