Advertisements
Advertisements
Question
Explain the following function:
Integer.parseint(in.readLine( ));
Answer in Brief
Solution
The function readLine() reads the input as a string and an integer.Parselnt() converts the input into an integer.
Syntax:
Buffer:edReader br = new BufferedReader(new InputStreamReader(System.in));
int x = Integer.parselnt(in.readLine());
shaalaa.com
Is there an error in this question or solution?