在Java中怎样接受用户输入的数据并赋值给已定义的变量?
String temp=null;
System.out.print("请输入一个阿拉伯数字: ");
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
temp=br.readLine();
String temp=null;
System.out.print("请输入一个阿拉伯数字: ");
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
temp=br.readLine();