So let's say I have different - independent - classes which use the same couple of imports over and over. let's say I need to import these lines for couple of classes to create APIs:
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
What's the best practice for these imports? should I use them as is (which obviously increases the LOC) , or should I somehow group them together and create a new package and just import the package?
I assume using *
would not be suggested for couple of reasons (readability etc)
Thanks in advance