总结:字符转换
package com.b; //流类 import java.io.*; public class uy { // 读取字符 public static void main(String[] args) throws IOException { BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); char c; do { c = (char) bf.read();// String 型 } while (c != 'p'); } }