Command Line Interfaces Flashcards

1
Q

Input Stream (System.in)

A

Captures characters machine reads or a user types into the console.

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

Output Stream (System.out)

A

Outputs characters to the console to be read by the user.

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

Scanner nextLine()

A

Gets text from input stream up until a newline (the user presses Enter).

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

Scanner nextInt()

A

Gets the next characters that can be converted to the numeric data type and leaves the rest.

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

Parsing

A

Is the conversion of data between unlike data types. String → int

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

Command Line Arguments

A

Arguments passed on the command line to an application are populated into String[] args array of the main() method.

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