English

Explain the following function: (char)(in.read()); - Computer Applications

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?
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. 2. | Page 66
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×