exit异常终止
来源:互联网 发布:油皮保湿水 知乎 编辑:程序博客网 时间:2024/05/16 01:29
public class Fu {public static void main(String[] args){
try(InputStreamReader bag=new InputStreamReader(System.in);
BufferedReader load=new BufferedReader(bag))
{
String linked=null;
while ((linked=load.readLine())!=null) {
if (linked.equals("exit")) {
System.exit(1); < ------------------
}
System.out.println(linked);
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
阅读全文
0 0
- exit异常终止
- Linux C 异常处理:绝对异常终止 exit()/abort()、assert()
- iOS终止函数exit
- 转载 : Exit() , abort(), 终止程序
- 进程的终止exit函数
- crash异常终止
- Windows终止异常程序
- TCP异常终止
- socket程序异常终止
- android app异常终止
- JAVA线程异常终止
- TCP异常终止
- exit 终止一个进程 atexit 注册终止函数
- 【Linux编程】进程终止和exit函数
- 进程控制-进程终止(exit、_exit)
- exit和_exit 进程终止有5种方法: 1正常终止 (1)从main函数返回 (2)调用exit (3)调用_exit 2异常终止 (1)调用abort (2)由一个信号来终止 exi
- 自动复活异常终止进程
- 自动复活异常终止进程
- 单列模式
- mysql event 定时更新任务
- 装双系统后,在windows下修复linux
- leetcode 350. Intersection of Two Arrays II
- node不可逆加密和可逆加密的简单实例 crypto模块
- exit异常终止
- JAVA使用RC4解密C#的RC4密文问题
- java中List转数组的问题
- I
- 微信小程序开发常用技巧(2)——页面view高度计算
- 学习日记-ps文字位置固定,但内容可以修改
- [每日翻译]如何在c#里面创造一个excel文件
- tomcat+nginx负载均衡配置
- 教你如何用好这些IT运维管理必备工具