import java.util ????
i got a question i was writeing this program i was using import java.util.Scanner; what does it really do besides doing input for java. i also
got this other one called import java.util.*;
what does that do. sorry for all these questions just a beginner a java
thanks for any help
The import statement provides an extension to the classpath to help the compiler find class definitions. It doesn't do any input, its only information to help the compiler find class files.
FYI, java.util.* imports all the classes in the java.util-package including java.util.Scanner. So if you have both statements in your code you can leave the java.util.Scanner out.