总结:read()方法返回类型是int型??不知道该怎么用好循环》
package com.da;
import java.io.*;
public class fgbv {
public static void main(String[] args) throws IOException {
BufferedReader bb = new BufferedReader(new InputStreamReader(System.in));
char c;
System.out.println("enter a line");
do {
c = (char) bb.read();
System.out.print(c);
} while (c != 'd');
}
}