please anyone explain me module descriptor file allowed import Why?
what is the used of import statement in module descriptor file.
import java.util.*;
module superman {
}
One use would be if you were using the provides directive:
module superman {
provides com.github.me.superhero.Superhero with com.github.me.superhero.Batman;
provides com.github.me.superhero.Superhero with com.github.me.superhero.IronMan;
}
Using an import would look like:
import com.github.me.superhero.*;
module superman {
provides Superhero with Batman;
provides Superhero with IronMan;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With