class ConsoleInput{

    public static void main(String ss[]) throws IOException{

        InputStreamReader isr=new InputStreamReader(;
        BufferedReader br=new BufferedReader(isr);
        char c=' ';
        System.out.println("Enter Characters And q to Quiet");

        }while(c != 'q');

in upper code this line c=(char); 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

Buffered reader just has a FIFO stack of characters supplied from the underlying input stream. Each time you call read() it pops the first char and returns it to you.

but there is a problem read() return -1 and we assign it to char c

Because you need a value to denote EOF/EOS which is not a valid char. Since -1 is not acceptable for a char (char is unsigned after all), read() returns an int.

This question has already been answered. Start a new discussion instead.