特牛网址导航

java的for循环中遇到异常抛出后继续循环执行_for循环中try catch出现异常还会继续-CSDN博客

网友收藏
文章浏览阅读1.2w次,点赞8次,收藏18次。@Testpublic void loopTryCatchTest() throws Exception { Map<String, Object> a = new HashMap(); a.put("a", "1"); a.put("b", null); a.put("c", "3"); for (Map.Entry<String, Object> moEntry : a.entrySet()) { try{ ._for循环中try catch出现异常还会继续