0
Pakages can have serval class?
can u give some explation on scanner to
1 ответ
+ 1
Yes a package is a collection of classes (basically just folders in the file system). They should be organised in a similar theme or complementary functionality.
https://docs.oracle.com/javase/8/docs/api/java/util/Scanner.html
Scanner can take an InputStream and gives some nice methods to handle the data. System.in is an InputStream, so you can pass it to a Scanner to handle the data