For Java, can I import all packages at once?

后端 未结 6 983
不思量自难忘°
不思量自难忘° 2021-01-18 07:15

For example, the third party library uses very complex directory structure for the package. Can I import them at once. the star seems can only imports one directory level.

6条回答
  •  盖世英雄少女心
    2021-01-18 07:31

    As you pointed in java you can only use "one level" import used by "*"

    The more effective way is to open Eclipse, open class where imports should be and press: CTRL + SHIFT + O:) - nowadays all IDE helps with organize imports

提交回复
热议问题