0
What is "import java.util.*;" ?
Look at title
7 Respuestas
+ 1
If you are not using any class or method from a specific package you don't need to import it.
You only import it when you want to use any method or class from it.
+ 3
Java util package contains collection framework, collection classes, classes related to date and time, event model, internationalization, and miscellaneous utility classes. On importing this package, you can access all these classes and methods.
+ 2
It's a package in java.
0
java.util is a package that contains frameworks and different classes.By importing java.util.* complete package is imported and we can use different method and classes of this package.
Like,we can also import only one class from entire package
import java.util.Scanner;
Importing Scanner class that is used for input.
0
Muhammad Bilal can I have an example please? The difference between importing and not doing nothing
0
Muhammad Bilal ok. Thanks
0
You're welcome