1黑马币
最佳答案Java中BufferedReader和scanner的对比
Scanner 和BufferedReader同样能实现将键盘输入的数据送入程序,
import java.io.*;
import java.util.Scanner;
public class C {
public static void main(String []args) throws IOException
{
String x1,x2;
int sum=0;
System.out.print("BufferedReader方法\ninput two number:");
//BufferedReader对象只将回车看作输入结束,得到的字符串
BufferedReader myRea ...
| |
| |
| |
| |
| |
| |
| |