Ask your own question, for FREE!
Computer Science 18 Online
HelpMePlz:

In Java, when to use import java.util.*; versus import java.Scanner;

Champion:

When you finish a java project it should onlu include what is needed if you do the .*, however, you won't know what is actually used and included. By doing spesific includes you have a better idea of what is going into a pogram wheich can result in knowing what can be done to improve it. Also, if you add something later you will have an idea of what is already inclided so ready to use, thus preventing the addition of similar libraries that would increase size for little or no feature. With that in mind, when do you think it would be better to use the generic * rather than specific things?

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Jalissa21: What does adenoma mea?
8 minutes ago 0 Replies 0 Medals
Twilightt: How Can We Prevent Gun Violence in American Schools?
2 hours ago 2 Replies 1 Medal
Twaylor: possible?
2 days ago 5 Replies 0 Medals
Arriyanalol: hekp
3 days ago 33 Replies 0 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!