![](/img/trans.png)
[英]How can I output an error message in my currency converter if the user inputs wrong value?
[英]How can i get my java code to terminate after the user inputs the password wrong 3 times in Java
您可以使用System.exit(0)
退出程序
因此,您可以將代碼更改為:
if (count ==2){
System.exit(0);
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.