public class ReadFromKB
{
public static void main(String args[])
{
try
{
byte bArray[]=new byte[128];
String str;
System.out.println("Enter something Using Keyborad:");
System.in.read(bArray);
str = new String(bArray, 0);
System.out.print("You entered:");
System.out.println(str);
}
catch(IOException ioe)
{
System.out.println(ioe.toString());
}
}
}
相关文章
- ..\OBJ\NRF24L01.axf: Error: L6218E: Undefined symbol IWDG_ReloadCounter (referred from main.o).
- Akka(24): Stream:从外部系统控制数据流-control live stream from external system
- [转] 15年Java经验的仁兄 ,From http://blog.csdn.net/axman/archive/2010/04/24/5523746.aspx
- In file included from scripts/kconfig/lxdialog/checklist.c:24:0: scripts/kconfig/lxdialog/dialog.h:3
- sublime-text-how-to-jump-to-file-from-find-results-using-keyboard
- 使用mybatis提供的各种标签方法实现动态拼接Sql。使用foreach标签实现遍历查询。比如实现select * from user where id in(1,10,24)这条sql查询语句。