Java程序设计中的键盘输入数据的方法分析
Method Analysis of Input Data by Keyboard in Java Programming
摘要:
在Java语言程序设计中要使用键盘输入所需要的数据,可以通过几种不同的类和方法来实现。本文对这几种类和方法举例并对每种例题进行分析和说明,通过比较,分析出在什么情况下输入不同类型的数据用什么类和方法更适用。
Abstract:
In the Java programming, keyboard is used to input the required data, which can be achieved by several different classes and methods. In this paper, we put some examples of the classes and methods, and then analysis and description for each of them. After comparison, the better appli-cable class and method under the circumstance of different input data have been analyzed.
参考文献
|
[1]
|
吕凤翥, 马皓. Java语言程序设计[M]. 第2版, 北京: 清华大学出版社, 2010: 362-363.
|
|
[2]
|
耿祥义. Java程序设计实用教程[M]. 北京: 人民邮电出版社, 2014: 157-158.
|
|
[3]
|
翁恺. Java语言程序设计教程[M]. 第2版. 杭州: 浙江大学出版社, 2014: 251-253.
|