2020
10-09
10-09
java自定义Scanner类似功能类的实例讲解
读取键盘输入packagecom.zjx.io;importjava.io.BufferedReader;importjava.io.IOException;importjava.io.InputStreamReader;/***面试题*读取键盘各个数据类型**/publicclassTestFaceIo{publicstaticvoidmain(String[]args){System.out.print("请输入姓名:");Stringname=MyInput.readString();System.out.print("请输入年龄:");intage=MyInput.readInt();System.out.print("请输入体重:");...
继续阅读 >