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 {
}
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;
}