选中要抛出异常的语句块快捷键ctrl+alt+t,选择try....catch....

IDEA中语句添加try....catch..语句块

相关文章: