Here's a corrected version of your code:
public class BRRead
public static void main( String args ) throws IOException
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter character, 'q' to quit");
while ( (c = (char)br.read()) != 'q')
System.out.println("char: " + c + ".");
You were very close, except for a few typos.
Also, sorry, I don't use NetBeans, and I don't know how to make this work from there. I just run it from the command line (Unix command line, in my case).
I hope that is helpful, and thanks for the nice "while loop" example of this code.