Which statement is used to take character input from a user?
A
char operator = scanner.charAt(0);
B
char operator = scanner.next();
C
char operator = next().charAt(0);
D
char operator = scanner.next().charAt(0);
Answers
Answered by
0
Answer:
option
D
char operator = scanner. next (). char At(0)
Similar questions