import java.io.*;
class ConsoleInput{
public static void main(String ss[]) throws IOException{
InputStreamReader isr=new InputStreamReader(System.in);
BufferedReader br=new BufferedReader(isr);
char c=' ';
System.out.println("Enter Characters And q to Quiet");
do{
c=(char)br.read();
System.out.println(c);
}while(c != 'q');
}
}
in upper code this line c=(char)br.read();
get string from user at this point user enter some string like abcdefq
and at first iteration jvm checks the a then b then c and so on until jvm finds q (Am I write)
now my question is that there is not increment operator that first check a then increment and check b and so on
is BufferedReader
like an array i do not understand its working