Is java.util.scanner and java.util.* the same??? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

Is java.util.scanner and java.util.* the same???

java

16th May 2017, 10:10 AM
Neil Bhowmik
Neil Bhowmik - avatar
2 Antworten
+ 14
java.util.Scanner imports only Scanner class. * means importing ALL classes of java.util package like Date, ArrayList, Scanner and so on.
16th May 2017, 10:16 AM
Shamima Yasmin
Shamima Yasmin - avatar
+ 1
thanx
16th May 2017, 10:32 AM
Neil Bhowmik
Neil Bhowmik - avatar