Scanner Methods Flashcards

1
Q

reads and returns a double value

A

nextDouble()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

reads and returns an int value

A

nextInt()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

reads and returns the next line of input as a String.

A

nextLine

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

reads and returns the next token as a String.

A

next()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly