总结: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');

	}

}

  

 

相关文章:

  • 2021-10-25
  • 2021-09-23
  • 2021-09-02
  • 2021-12-04
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-29
  • 2022-12-23
  • 2021-12-13
  • 2021-03-31
  • 2021-06-30
  • 2021-09-12
  • 2021-09-14
相关资源
相似解决方案