answersLogoWhite

0

import java.io.*;

class gar

{

protected static void main()throws IOException

{

BufferedReader in=new BufferedReader(new InputStreamReader(System.in));

System.out.print("Enter a value: ");

int a=Integer.parseInt(in.readLine());

}

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is the meaning of bufferedreader?

BufferedReader br = new BufferedReader- can readline and close Java closes when the program terminates but you should always close the file.


What is BufferedReader in Java Programming?

BufferedReader is a class used to read text from charater-input stream and buffering characters which reads characters, arrays, and new lines. In general, each read request made using "Reader" class, causes a corresponding read request to be made of the underlying character or byte stream. It is therefore advisable to wrap a BufferedReader around any Reader whose read() operations may be costly, such as FileReaders and InputStreamReaders. For example, BufferedReader in = new BufferedReader(new FileReader("foo.in"));


Yes or no JAVA programming is a example for programming language?

Yes.Yes.Yes.Yes.


What is a BufferedReader in java?

buffered is basically a way of creating an object


Is java example of a procedural programming language?

No.Its purely object oriented programming language


Example of a programming language?

C, C++, Java, C-Sharp


What is parseInt in BufferedReader in java?

parseInt() interprets the next available token as an int.


What is IOExeption in BufferedReader in java?

IOException is thrown when a general input output error occurs.


Is it valuable learning java as a programming language?

Sure, Java is a good option as a programming language. However, there are other good options, too - for example, Python, PHP, C#, etc.


In java which package BufferReader class exist?

I believe you are asking about BufferedReader. It is in java.io package. java.io.BufferedReader;


What programming language are java applets written in?

Java applets are written in the Java programming language. Java is considered to be one of the oldest and most commonly used programming languages in the world.


What is the first name before of the Java Programming?

The first name of the Java Programming was Oak. It then went by the game Green and finally Java from Java coffee.