我有这样的条件
String str = null;
try{
...
str = "condition2";
}catch (ApplicationException ae) {
str = "condition3";
}catch (IllegalStateException ise) {
str = "condition3";
}catch (Exception e) {
str = "condition3";
}
if(str == null){
str = "none";
}
现在我想总结一下str = "condition3";
。由于 finally 块总是运行,因此无法满足我的需求。还有什么可以做的。