0
java.util.*
I've seen many codes with the import java.util.* but idk what is it for. I've tried it in Eclipse but it said that it " doesn't allow it", so if anyone can give me some insight on this it'll be great!
2 odpowiedzi
+ 12
Pls refer to the official documentation:
https://docs.oracle.com/javase/8/docs/api/java/util/package-summary.html
Lists every class that is contained in the utility package.
Most commonly used is probably the Collections class extend by Lists, Sets, Maps and so on.
- 1
java.util.* is a package that can be imported in to a Java code for using some important features like Scanner, Random, Date, etc.
Check out my Java codes and you will get some example of usage of java.util.Scanner.