0

Pakages can have serval class?

can u give some explation on scanner to

24th Jun 2018, 8:19 AM
Vikas Vyas
Vikas Vyas - avatar
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
24th Jun 2018, 8:55 AM
Dan Walker
Dan Walker - avatar