在Java中如何实现“Pless presss any key to continue.”
2015-11-23 23:39
429 查看
import java.util.*; class Continue{ public static void main(String[] args){ Scanner scanner=new Scanner(System.in); System.out.println("Pless presss any key to continue."); String key=scanner.next(); } }
但是这样写一定要回车才可以,而且不可以在输入第一个字符的时候就Continue
想不到还有什么好办法了
相关文章推荐
- 在Java中如何实现“Pless presss any key to continue.”
- jq UI插件
- requirejs
- require.js
- 在Web API中使用Swagger-UI开源组件(一个深坑的解决)
- UVA 11775 Unique Story(LCS [LIS] + BIT)
- 将requirejs进行到底(2)
- UIWindow
- UE4 world组件
- ArrayAdapter requires the resource ID to be a TextView问题
- easyui datagrid 动态生成列
- UITableView编辑
- 1085. Perfect Sequence (25)
- 1085. Perfect Sequence (25)
- Xcode target build settings Architectures
- [Django架构流程分析]Django中的request与response对象
- iOS UI基础-16.0 UIButton
- UI第十天:UITableView 编辑
- LeetCode Range Sum Query 2D - Immutable
- ValueStack详解:EL和OGNL用法