//display entered strings until you enter 'q'
import java.io.*;
class BuferredReaderdemo {
public static void main(String[] args) {
char c='o';
System.out.println("type any string :");
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
do{
try
{
c=(char)br.read();
}
catch(IOException e)
{
System.out.print(e);
}
System.out.println(c);
}while(c!='q' );
}
}
import java.io.*;
class BuferredReaderdemo {
public static void main(String[] args) {
char c='o';
System.out.println("type any string :");
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
do{
try
{
c=(char)br.read();
}
catch(IOException e)
{
System.out.print(e);
}
System.out.println(c);
}while(c!='q' );
}
}