How are import
statements and method calls tokenized in java's lexical analysis. For example:
import java.util.Scanner
is this seen as import
, java
, util
, Scanner
(4 tokens) or import
, java.util.Scanner
(2 tokens)
In the same line of thought, in:
Scanner input = new Scanner(System.in);
int x = input.nextInt();
is input.nextInt()
seen as input
, nextInt()
(2 tokens) or input.nextInt()
(1 token)