Thanks a lot, chi Lin.
I changed the original code to "while(!((reply=br.readLine()).equals("n")))" and it works, but could you explain why? Does readLine() method create a
String object(in heap) from the console input and return it?
[ May 14, 2004: Message edited by: Claire Yang ]