Read the following code segment that depicts the usage of System.in.read function.

import java.io.*;
class Character
{
    public static void main(String args[])throws IOException
	{
	   int a;
	   a=System.in.read();
	   System.out.printIn("You have entered"+a);
	}
}

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Show Buttons
Hide Buttons