Firstly I want to create a custom user library with the following structure:
src:
- LibA.pack1
- ClassName0.java
- LibA.pack2
- ClassName1.java
I have no problem with this one. Later I want to import this library into the other project and call
import LibA.*;
(to use both classes of pack1 and pack2), which will fail as it requires full name, i.e.
import LibA.pack1;
How can I import the whole library at once to be able to use both classes of pack1 and pack2?
P.s. It's definitely not called "nested packages" but I have no idea how to call this. P.p.s. I'm using Eclipse if it matters.
Thanks in advance:)
See Question&Answers more detail:os