Reading input values from the keyboard with inputstreamreader

From , 3 Years ago, written in Java, viewed 241 times.
URL https://pastebin.vip/view/59c33016
  1.                         InputStreamReader ir;
  2.                         BufferedReader in;
  3.                         ir = new InputStreamReader(System.in);
  4.                         // 从键盘接收了一个字符串的输入,并创建了一个字符输入流的对象
  5.                         in = new BufferedReader(ir);
  6.                         String s = in.readLine();
  7.                         // 从输入流in中读入一行,并将读取的值赋值给字符串变量s
  8.                         System.out.println("Input value is: " + s);

Reply to "Reading input values from the keyboard with inputstreamreader"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website