Scanner Flashcards
1
Q
This is used to get user input
A
Scanner Class
2
Q
The Scanner Class can be found in the ________________
A
java.util package
3
Q
This create an object of the class and use any of the available methods found in the scanner class documentation.
A
Scanner Class
4
Q
We use this method to read strings
A
nextLine() method
5
Q
True or False:
Java does not have a built-in Date class
A
True
6
Q
Where can we import a Date class in Java?
A
java.time package
7
Q
To display the current date, what package do we import?
A
java.time.LocalDate