English

Explain the following function: Integer.parseint(in.readLine( )); - Computer Applications

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?
Chapter 1.06: Input in Java - EXERCISES [Page 66]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.06 Input in Java
EXERCISES | Q III. 1. | Page 66
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×