Advertisements
Advertisements
Question
Explain the following function:
(char)(in.read());
Answer in Brief
Solution
This function allows you to input a character.
Syntax:
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
char c= (char)(in.read());
shaalaa.com
Is there an error in this question or solution?