【发布时间】:2020-04-22 09:57:30
【问题描述】:
我想跳出尝试块, 我该怎么做?
try
{
//some code
if()
{
// I want to break/ jump out from try block here if condition is true
}
else
{
}
//but it continues here
// More Code
}
catch()
{
}
如何跳出来?
任何帮助将不胜感激。
【问题讨论】:
-
“跳出
try”的意思是要运行try...catch语句之后之后的代码吗? -
是的,我想在 catch 块 @Sweeper 之后执行什么
标签: java android-studio if-statement try-catch