to create java program using buffered reader

label Engineering
account_circle Unassigned
schedule 1 Day
account_balance_wallet $5

How to create java program using buffered reader.  to create java program using buffered reader.  to create java program using buffered readersdnsjf dkfndksfns skfskf

Oct 21st, 2017

Buffered Reader is a class which uses an InputStream Reader object to read  characters from a stream. If using in the Inputstream Reader class, we can read the typed characters.
We can use the read() or readLine() functions to read data. read() will read a character and readLine() will read a whole line of characters(till you press enter). Also it throws an IOException which we must handle in our program
We also need to import as it contains the necessary classes.

An example program

public static void main (String[] args) throws IOException

// throwing the IO exception which the buffered reader may generate

BufferedReader br =new BufferedReader(newInputStreamReader(;

int T=Integer.parseInt(br.readLine());
for(int i=0;i<T;i++){
	String s= br.readLine();
//read a line as string
	int[] m=newint[2];//create a 2 member array
        m[0];//read the first number
//read the second number

//print out the string

//print out the first number


Mar 8th, 2015

Studypool's Notebank makes it easy to buy and sell old notes, study guides, reviews, etc.
Click to visit
The Notebank
Oct 21st, 2017
Oct 21st, 2017
Oct 22nd, 2017
Mark as Final Answer
Unmark as Final Answer
Final Answer

Secure Information

Content will be erased after question is completed.

Final Answer